![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| > One more question for you... In my example it outputted 1, 2, 3, 4, 5 in a > list. Is it possible to have the next number replace the one in front of it? > For instance, it would display 1, then display 2, then display 3, so there > is just one number on the screen at a time. Not without doing a <meta refresh> after each one. Once data is sent to the browser, it's stuck there. I guess an ugly way to do this would be to use Javascript to hide your previous output as your new output comes in. This would be way ugly, though. | |||
|
| Advertisements |
| | #2 | ||
| That didn't seem to work $x = 1; while ($x < 20) { echo $x.'<br>'; echo $data.str_pad(" ", 300); flush(); echo "<meta refresh>"; $x++; sleep(1); } Still lists it one by one instead of in place of eachother... "Peter James" <petej@shaman.ca> wrote in message news:vi9gh25pijle7b@corp.supernews.com... > > One more question for you... In my example it outputted 1, 2, 3, 4, 5 in a > > list. Is it possible to have the next number replace the one in front of > it? > > For instance, it would display 1, then display 2, then display 3, so there > > is just one number on the screen at a time. > > Not without doing a <meta refresh> after each one. Once data is sent to the > browser, it's stuck there. I guess an ugly way to do this would be to use > Javascript to hide your previous output as your new output comes in. This > would be way ugly, though. > > | |||
|
| | #3 | ||
| Peter James wrote: > Not without doing a <meta refresh> after each one. Once data is sent to the (...) <meta refresh...> is a client side hack for achieving what we can do server side. In HTML, using <meta http-equiv... is equivalent to sending the same header directly to the client. So, writing the following HTML: <meta http-equiv="refresh" content="0;url=http://www.nowhere.com"> is equivalent to this PHP call: Header("refresh","0;url=http://www.nowhere.com"); The latter is, of course, usually invisible in the source code -- Marius | |||
|
| Featured Websites | ||||
|
![]() |
| Tags: page, real, time, updating |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Real-Time Geocoding Service | welldone | GPS | 0 | 06-25-2007 11:43 PM |
| Real-time geocoding services for web applications | welldone | GPS | 0 | 06-12-2007 5:20 PM |
| Updating a cached page | Lorne | Website Reviews And Website Questions | 6 | 05-28-2007 12:44 AM |
| Featured Websites | ||||
|