Programming Theory
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesProgramming Theory

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #16  
Old November 25th, 2003, 09:53 PM
mugane mugane is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Charlottesville, VA USA
Posts: 425 mugane User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to mugane Send a message via Yahoo to mugane
RE: Minimum bandwidth for a HTTP request

that would be ideal, if I could keep the page from loading but still send variables - but how to circumvent the max_execution_time?

Reply With Quote
  #17  
Old November 25th, 2003, 11:41 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: RE: Minimum bandwidth for a HTTP request

set_time_limit()

(but can be disabled by server admin)

Reply With Quote
  #18  
Old November 25th, 2003, 11:59 PM
honcho's Avatar
honcho honcho is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Cape Cod
Posts: 1,347 honcho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 2 sec
Reputation Power: 3
RE: Minimum bandwidth for a HTTP request

A friend of mine made a server-side chat application that worked using cookies attached to an image. I don't have all the details and his site is no longer up, but it worked like this:

1. The client checks (using Javascript) to see if there are any messages by setting an image variable to the url of the php page that checks for messages.
2. If there are messages, the php page sends back a small token image with the messages attached as cookies.
3. If there are no messages, it sends back no image.
4. To post a message just request an "image" using the url of the posting php page with the message in the query string.

So, the only wasted communication is the request for an image every x seconds and the null image for an empty reply.

Reply With Quote
  #19  
Old November 26th, 2003, 02:29 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: RE: Minimum bandwidth for a HTTP request

Quote:
So, the only wasted communication is the request for an image every x seconds and the null image for an empty reply.


not true. you didn't count headers sent both ways. even if you dont send the image back, headers are sent, and that is what mungane's problem was originally.

he used javascript that didn't send anything when there are no new messages. but that "nothing" is still "nothing with headers" ;)

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesProgramming Theory > Minimum bandwidth for a HTTP request


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT