&1 > /dev/null note: my cam uploads on the 5's, my text overlay cron runs a minute later on the 1 and 6, this cron runs a min later on the 2 and 7 http://en.wikipedia.org/wiki/Cron Method 2: Use Scheduled HTTP Request - Windows Task Scheduler to make a HTTP Request to the URL http://www.yourwebsite.com/php-cam-image-upload.php every 5 minutes Scheduled HTTP Request - Windows Task Scheduler: http://www.642weather.com/weather/wxblog/php-scripts/scheduled-http-request-windows-task-scheduler/ 7) Visit wunderground.com and verify the cam image is uploading. http://www.wunderground.com/webcams/index.html */ ################# # begin settings # ############## //FTP Hostname $ftp_server = 'webcam.wunderground.com'; $ftp_username = 'YOUR_WU_USERNAME'; # change this to your WU username $ftp_password = 'YOUR_WU_PASSWORD'; # change this to your WU password // This is the name and location of the file on your local server to upload // This is a server file path NOT A URL! // change /path/to/your/ to the correct server path $source_file = '/path/to/your/webcamimage.jpg'; ################# # end settings ################# ##### ##### # Do not alter any code below this point in the script or it may not run properly. ##### ##### //This is the name and location after upload to the FTP server // DO NOT CHANGE THIS, IT IS WHAT webcam.wunderground.com NEEDS! $destination_file = 'image.jpg'; if (file_exists($source_file)) { //connect to the server $conn_id = ftp_connect($ftp_server) or die ("Couldn't connect to $ftp_server"); // try to login if (ftp_login($conn_id, $ftp_username, $ftp_password)) { echo "Connected as $ftp_username@$ftp_server
\n"; } else { echo "Could not connect as $ftp_username - username and or password incorrect\n"; //close the FTP connection ftp_close($conn_id); exit; } //upload the file if (ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY)) { //ftp_put can upload files in ascii or binary, //ascii would have FTP_ASCII instead of FTP_BINARY //binary is the correct format for images echo 'uploaded success'; } else { echo 'upload failed'; } } else { echo 'upload failed - source_file not found, check setting for source file path'; exit; } //close the FTP connection ftp_close($conn_id); echo ' ... disconnected .... good bye'; ?>