0

Between php and javascript which is better for server side development

Between php and javascript which is better for server side development

30th May 2017, 11:16 PM
The_Punisher
The_Punisher - avatar
4 Antworten
+ 1
Php is better as you cant really use javascript for server side developoment. You can use ajax javascript to integrate between the two. By doing this you will be able to run the php scripts on the server.
30th May 2017, 11:30 PM
Graham Caswell
Graham Caswell - avatar
+ 6
@Graham Caswell: Any language can be use on server side, and today there are web server frameworks for most of scripting languages: Javascript, Python, Ruby... and even Java, wich is semi-compiled ( semi-scripting too ). Compiled ones can necessarly handle web serving, but on one hand I don't know if it exists some dedicated frameworks, and on the other hand, compiled languages are less logical to be use for that, as needing to recompile all your web server each time you modify it is not very well suited. @Ugochuckwu: There is no better language for anithing, but just languages you like more or less, frameworks befits to your tastes/needs ^^ Php is an old one designed specifically for web serving ( and templating )... You could find advantages and disadvantages in any languages, however Php is widely in use, and all wen hosters provide it... but other are more recents/moderns ( even if Php evoluate, and frameworks for the initial Php framework language are now available :P )
31st May 2017, 4:36 AM
visph
visph - avatar
+ 5
PHP is tradtitionally used for server-side and it does that job fine. However, I disagree with Graham on that JavaScript :isn't suitable for it. JavaScript, specifially in conjuction with NodeJS, makes for a wonderful backend for apps and the web. Its usage seems to be becoming more comon while PHP keeps dropping out of favorability.
31st May 2017, 12:29 AM
Taija
Taija - avatar
0
Thanks
30th May 2017, 11:30 PM
The_Punisher
The_Punisher - avatar