Question:
Is PHP getting to be a thing of the past?
NetBoy
2006-06-23 06:45:34 UTC
AJAX (Asynchronous JavaScript and XML) is emerging as a new powerfull scripting language (I mean look at Yahoo Mail Beta!). Is PHP going to suffer the same fate as PERL and vanish in the background or will it be saved by it's scalability and wide-spread use and make it to PHP vers. 6 ?
Eight answers:
Caus
2006-06-23 06:47:29 UTC
no.



Client Side Scripting is overhyped, there are too many issues that cannot be done client side. and even AJAX requires some serverside processing to be functional.
mes
2006-06-24 00:11:05 UTC
I think AJAX is a concept frequently misunderstood.



AJAX is just a new name to speak about rich web interfaces that use Java Script (to execute things), Dynamic HTML (to render things) and XML (to pass information between clients and server). The element that makes AJAX so "cool" is the Asynchronous messages, that allow the browser to make new requests without reloading the entire page.



PHP is a technology to program mainly the server-side of web applications. Access to databases, mailboxes or whatever should be done on the server, has to be programmed using server-side languages like PHP, Perl, JAVA, .net.



Using AJAX technologies is not possible to contact a database, for example, since only the HTTP protocol is supported, but PHP scripts can invoked to make what is necessary on the server.



One of the downside of AJAX is that Java Script is not a very friendly language for developers and is not as easy to develop and debug complex applications as with other languages. That is why a lot of AJAX frameworks exist for other languages. For example, a library called XAJAX allows you to develop your code in PHP and it translates it to the appropriate Java Script; that way you only have to easily call the generated Java Script functions.



It could be possible to write applications using only AJAX, but surely they would be very boring since they have to be run inside a browser (in a sandbox) and can't save or read local files or do many things other than what is allowed to do with DHTML.
mikos
2006-06-23 15:21:05 UTC
PHP and AJAX complement each other - AJAX is a client side technology, while PHP is server-side. AJAX cannot work without some server-side component, and that server-side component may be written in PHP. I believe PHP is there to stay because it is so braindead simple to use, as opposed to some other server side technologies (in particular JSP and ASP) - the developer community will make sure it stays.
-:¦:-SKY-:¦:-
2006-06-23 14:04:39 UTC
PHP will be around awhile. There is still an abundance of bright minds out there developing and the ease of use and application will be a determining factor for the longevity.
Bors
2006-06-23 13:47:59 UTC
A lot of AJAX is done using PHP. I believe PHP will be around for a while.
Sajis
2006-06-23 13:49:01 UTC
No not so soon. it will take some time to hapen
Kheme
2006-06-23 13:59:27 UTC
NO NO NO NO... NO WAY!
karthik
2006-06-23 13:49:43 UTC
NO!!!!


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...