I am using php script to upload file on some ftp server. When I start my script through browser it is working fine, but when the script is running as cron job script doesn’t upload file on my ftp server.
What are the differences between running script from browsers and as cron job?
Thanks
I am using php script to upload file on some ftp server. When I
Share
If the web version works and cron situation is too convoluted, you could try one of these variants for the cron job:
lynx --source "http://some.host/myfile.php?some=option" > /dev/nullAlternatively, you could use links, curl or even wget.