You can use flush() for that, but the webserver, any intermediate caches, and the browser may cache the data before it gets displayed. You're much better off using JS to change the src of an img every n seconds.
On Fri, 9 Jul 2004 10:47:04 +0100, Jason Merrique <[EMAIL PROTECTED]> wrote: > Hi Todd, > > Just had an idea - not sure if it will work. > > Can you make PHP send data as it becomes available? > > Given that the pictures are all the same size, and there aren't too many > of them, a 'for' loop would do it: > > for ($i = 1; $i <= 10; $i++) > { > echo layer containing the picture i with z-index i; > Wait; > } > > Etc... > > That way the pictures would be stacked on top of each other. > > Is this possible? > > Cheers, > > Jason > > > -----Original Message----- > > From: Matthew Sims [mailto:[EMAIL PROTECTED] > > Sent: 08 July 2004 17:18 > > To: [EMAIL PROTECTED] > > Subject: Re: [PHP] Re: Slideshow using PHP > > > > > I do have a JavaScript based "SlideShow", however, I would > > like to use > > > PHP rather than JavaScript. Is there a way to "loop" with PHP and > > > "display" an image without re-displaying the whole page? > > > > > > Todd > > > > To get a good slideshow you'll need to use client side > > instructions, aka javascript. You're probably not going to > > get it to work so well using PHP which is server side instructions. > > > > Part of getting the slideshow to work is making the browser > > switch to the next image and well, PHP doesn't really make > > the browser do anything. > > > > --Matthew Sims > > --<http://killermookie.org> > > > > -- > > PHP General Mailing List (http://www.php.net/) To > > unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > !DSPAM:40ee65d3246611030617968! > > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php