benn600 Posted November 27, 2007 Share Posted November 27, 2007 What PHP code would I need to simply download an image from an internet address and save it to a location on the server? At regular intervals? Can PHP somehow be added to the Windows task scheduler? I have some security cameras that can FTP images to my server but when I have the FTP enabled and uploading images every 10 seconds, they become unstable and crash. Viewing the image through the web browser doesn't seem to make them unstable. Quote Link to comment Share on other sites More sharing options...
Stooney Posted November 27, 2007 Share Posted November 27, 2007 What you're looking for is a cron job. I know nothing about it, but here are a couple links I found that should get you started: http://www.linuxhelp.net/guides/cron/ http://www.unixgeeks.org/security/newbie/unix/cron-1.html Quote Link to comment Share on other sites More sharing options...
JovanLo Posted November 27, 2007 Share Posted November 27, 2007 you can use wget tool to download your images. A cron job to wget the images at specified intervals will work. http://pages.interlog.com/~tcharron/wgetwin.html http://gnuwin32.sourceforge.net/packages/wget.htm Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.