|
||||||||||||||||||||||||
php vrs ajax
wich one?
ajax or php?
or both? (is that possible?)
ajax or php?
or both? (is that possible?)
| morfeusman wrote: |
| or both? (is that possible?) |
Yes, would be the answer. PHP is a server-side language. AJAX is a method of communicating between the client (i.e. Firefox) and the server (i.e. PHP) constantly. That way, say, if you were writing a chat client, the AJAX in Firefox could send a message to PHP and request any new messages. In fact, it's not even possible to use AJAX without a server-side language (PHP, Python, Perl, ASP)
thank you, hogwarts,
i didn't know that you HAD to have a server side language to go with it.
thats great because what i want to do requires php and ajx- thanks again
i didn't know that you HAD to have a server side language to go with it.
thats great because what i want to do requires php and ajx- thanks again
php is a server sided compiled language. the browser only server the compiled pages converted to static html. AJAX is advanced javasctript and XML and requires a good browser only as it runs interpreted from the browser itself.
There is no reason for php not to work with ajax.
There is no reason for php not to work with ajax.
| Chinmoy wrote: |
| php is a server sided compiled language. the browser only server the compiled pages converted to static html. AJAX is advanced javasctript and XML and requires a good browser only as it runs interpreted from the browser itself.
There is no reason for php not to work with ajax. |
It's not 'advanced', it's 'asynchronous' ^^
Last edited by Hogwarts on Tue Jul 14, 2009 8:54 pm; edited 1 time in total
You technically don't have to use both. You could you use the AJAX to access a static text or XML file, but if you are only referencing static files, AJAX is WAAAAAAAY to much work.
So you basically have to use some server-side language with AJAX...
-Nick

So you basically have to use some server-side language with AJAX...
-Nick
Related topics
