/    Sign up×
Community /Pin to ProfileBookmark

Anyone know where I can learn PHP AJAX?

to post a comment
PHP

12 Comments(s)

Copy linkTweet thisAlerts:
@bokehJul 20.2006 — AJAX has nothing to do with PHP. It is a javascript feature built in to current browsers which can request webpages in the background. Of course PHP could be used to build those pages but it wouldn't make any difference if the server side pages were just plain old .txt documents. What are you trying to do?
Copy linkTweet thisAlerts:
@The_Little_GuyauthorJul 20.2006 — read and write to a database using AJAX

But if there is a better way... I would like to have a browser window open on one PC and another open on a 2nd PC, and 2 people can talk through it, and it will act as an IM system.
Copy linkTweet thisAlerts:
@bokehJul 20.2006 — Well download an IRC program.
Copy linkTweet thisAlerts:
@cafrowJul 20.2006 — That would be pretty cool. Do a google search for AJAX tutorials, basicly Ajax lets you send info to the server and read a response from the server, so a simple chatroom would be pretty cool to do. You would use PHP to handle the input from Ajax and feed it some output.
Copy linkTweet thisAlerts:
@purefanJul 20.2006 — Hi there,

I've seen several IM systems work with AJAX, and I must say after you get the hang of it itis really easy. Not that im a guru or anything but found this page pretty useful

http://www.w3schools.com/ajax/default.asp

Started with their examples and moved on from there.

Hope you find it useful as well ?
Copy linkTweet thisAlerts:
@bokehJul 20.2006 — That would be pretty cool. Do a google search for AJAX tutorials, basicly Ajax lets you send info to the server and read a response from the server, so a simple chatroom would be pretty cool to do. You would use PHP to handle the input from Ajax and feed it some output.[/QUOTE]http is not an appropriate protocol for chatservers.
Copy linkTweet thisAlerts:
@cafrowJul 21.2006 — http is not an appropriate protocol for chatservers.[/QUOTE]

The internet was not invented for Porn sites either, but look how well thats working out. ?
Copy linkTweet thisAlerts:
@SpectreReturnsJul 22.2006 — The internet was not invented for Porn sites either, but look how well thats working out. ?[/QUOTE]
That... really isn't relevant. HTTP demands a lot more headers so that it can transfer multiple types of information and be understood. A chat server simply requires a "who: what" message, cutting down on size of packets and thus increasing speed. Probably some other things I'm forgetting, but I've had a long day.

By the way, I'm back and ready to fight and conquer the evil and opperssion on these boards!
Copy linkTweet thisAlerts:
@bokehJul 22.2006 — Also an http chat program needs continual (unnecessary) requests to refresh the page.
Copy linkTweet thisAlerts:
@Vectorman211Jul 22.2006 — I would have to agree that a HTTP based chat system has it's overhead and would create an unnecessary toll on the web server itself. On the other hand, AJAX would be the perfect method (AJAX is a method of programming, not a language) to do so. It does use XMLHttp Requests which would significantly reduce overhead.
Copy linkTweet thisAlerts:
@bokehJul 22.2006 — AJAX is no different whatsoever. It functions using standard http requests just as with a any standard http page load. Http is a client pull protocol. For a chat program a server push protocol is needed to avoid continual and unnecessary requests.
Copy linkTweet thisAlerts:
@Vectorman211Jul 22.2006 — Agreed.
×

Success!

Help @The_Little_Guy spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...