To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > PHP Help > Upgrading PHP

Upgrading PHP Issues concerning PHP version upgrades and future releases

Reply
 
Thread Tools Rating: Thread Rating: 9 votes, 5.00 average. Display Modes
Old 05-13-2004, 05:16 PM   #1
craig_fly
Junior Member
 
Join Date: Nov 2003
Posts: 5
Will PHP 5 Allow for better Chat?

I know there's some new work done on sockets, a subject which I am very fuzzy on.

But I was wondering if this would allow for a way to avoid using a java applet or a refresh to make a chat room or other cool feature involving that kind of real time interaction.
craig_fly is offline   Reply With Quote
Old 05-13-2004, 05:34 PM   #2
goldbug
50,000 Watts of Goodwill
 
goldbug's Avatar
 
Join Date: May 2003
Location: Rummaging through your garbage.
Posts: 1,326
AFAIK, no.

It's still server-side, so that means to get new content, you need to refresh, or use some client-side device.
__________________
Many eyes make few mistakes

goldendance
goldbug is offline   Reply With Quote
Old 05-13-2004, 07:24 PM   #3
Shrike
Not Yet Involved
 
Shrike's Avatar
 
Join Date: Oct 2003
Location: The Eighth, Sursamen
Posts: 2,254
The problem is not really to do with PHP but with using the HTTP protocol I guess.
__________________
The Hundredth Idiot
Shrike is offline   Reply With Quote
Old 05-14-2004, 04:03 AM   #4
Weedpacket
Custom User Title™
 
Weedpacket's Avatar
 
Join Date: Aug 2002
Location: Rapid Offensive Unit "Foreign Object Damage"
Posts: 19,124
Using RPC should be feasible - though that can be done in PHP4 the PHP5 implementation of XML-RPC ought to be more stable (including 5's use of libxml). Which isn't to say XML is necessary for RPC - just a client that can run Javascript.
__________________
On two occasions I have been asked [by Members of Parliament], "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
Weedpacket is offline   Reply With Quote
Old 06-02-2004, 12:57 PM   #5
Napster
übergeek
 
Join Date: Sep 2003
Location: Simon Fraser University
Posts: 407
with the chat thing use a meta refesh in the chat thing every 30 seconds
Napster is offline   Reply With Quote
Old 06-02-2004, 07:48 PM   #6
Moonglobe
Better fan than rebelo!
 
Moonglobe's Avatar
 
Join Date: Apr 2003
Location: brain://localhost:left-side
Posts: 2,381
Like Shrike said, there's no reason why PHP 4 couldnt handle real-time chat, it's jsut that there's gotta be a client-side interface, besides the browser. and that means not HTTP. basically any protocol you could think of would work.. just not something defined as stateless, for the transfer of hypertext. chat was never supposed to be an application of HTTP.
__________________
there's no place i can be, since i found serenity.
Moonglobe is offline   Reply With Quote
Old 06-06-2004, 01:12 AM   #7
freebie
Senior Member
 
Join Date: Oct 2002
Posts: 199
Although there are ways of making server-side calls from javascript, and getting the results (such as using XMLHTTP or "hidden iframes"), I think a good and relatively easy solution would simply be to put the portion of your page that contains the chat interface and results in an iframe, that way, when it gets refreshed, only the iframe portion is refreshed and is that much faster and less noticeable.
__________________
Jeff Gillin
freebie is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 08:57 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.