FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

php vrs ajax

 



php or ajax?
php
66%
 66%  [ 4 ]
ajax
33%
 33%  [ 2 ]
Total Votes : 6

morfeusman
wich one?
ajax or php?
or both? (is that possible?)
Hogwarts
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)
morfeusman
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
Chinmoy
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.
Hogwarts
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
polly-gone
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 Smile Smile Smile
Related topics

PHP&Ajax Türkçe karakter sorunu
upload image through PHP AND AJAX
php and ajax
PHP + Ajax
some AJAX/PHP problems...

Improve PHP skills
i'm surprised.
Coder for hire
[Community Project] Easy Simple Content Management System
Hello from Steve

Existem brasileiros aqui na frihost?
Html
[help] Como me hago un chat?
the most advanced thing created with php?
Turksportal.net'teki sistem?
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.