thecard Posted December 13, 2008 Share Posted December 13, 2008 I have a php file with image headers: <img src="something.php" /> How could I set the image to reload every x seconds from inside something.php? Link to comment https://forums.phpfreaks.com/topic/136802-just-reloading-an-image-from-inside-the-image/ Share on other sites More sharing options...
ted_chou12 Posted December 13, 2008 Share Posted December 13, 2008 I think that's more like javascript: <html> <head> <script language="JavaScript"><!-- function refreshIt() { if (!document.images) return; document.images['myCam'].src = 'myCam.gif?' + Math.random(); setTimeout('refreshIt()',5000); // refresh every 5 secs } //--></script> </head> <body onLoad=" setTimeout('refreshIt()',5000)"> <img src="myCam.gif" name="myCam"> </body> </html> Link to comment https://forums.phpfreaks.com/topic/136802-just-reloading-an-image-from-inside-the-image/#findComment-714549 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.