Jump to content

Script doesn't work as cron


tibberous

Recommended Posts

I have a PHP script that downloads an image from a 3rd party. It works when I run it from the command line, doesn't work when I run it as a cron daemon. I was thinking it might be having trouble because of relative file paths, so I tried running it from different directories and it still worked.

 

The script is running, it's just the part that saves the image that doesn't - would it be a permissions error? Or is there something common I might want to check for?

Link to comment
https://forums.phpfreaks.com/topic/195530-script-doesnt-work-as-cron/
Share on other sites

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.