Jump to content

Simple PHP Code--Auto download image


benn600

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/79019-simple-php-code-auto-download-image/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.