Page 1 of 1
Is there such a function?
Posted: Fri Mar 17, 2006 2:15 pm
by sleepwalker0
Hey everyone I need to reload a picture (not a page) ever lets say 60 seconds. Don't tell me how to do it cause I really want to try this myself but are there already some php functions like picturereload() or something, so I dont have to do it manually.
So I need two functions:
1 For a picture to reload
2 to do something over and over ever ome time (like interval in js)
Thx
Posted: Fri Mar 17, 2006 2:44 pm
by josh
Load a picture and save it to your server? Or refresh the picture on a page. To do the latter you will need to use javascript, the former a cron job running every 60 seconds. Generally you can read in the binary string for a file with the fopen family of functions
Posted: Fri Mar 17, 2006 4:12 pm
by sleepwalker0
No I don't need to upload a file to my server. It's a hotlink to an ftp, and I was wondering if it's possible to do it with php
Posted: Fri Mar 17, 2006 4:16 pm
by anthony88guy
sleepwalker0 wrote:Hey everyone I need to reload a picture (not a page) ever lets say 60 seconds. Don't tell me how to do it cause I really want to try this myself but are there already some php functions like picturereload() or something, so I dont have to do it manually.
So I need two functions:
1 For a picture to reload
2 to do something over and over ever ome time (like interval in js)
Thx
This is client side, not server side. Would have to use JavaScript (client side).
Posted: Fri Mar 17, 2006 4:32 pm
by sleepwalker0
so it's impossible to do in php? (or almost impossible)
Posted: Fri Mar 17, 2006 6:01 pm
by josh
That doesn't make sense... PHP outputs data, by the time you see your page PHP is done. You can have PHP output javascript.
Posted: Sat Mar 18, 2006 9:00 am
by darkbear
You should read sth about Ajax. Its great.