Answer the question
In order to leave comments, you need to log in
GD and CRON, how to decide?
Actually, there is a problem when generating a picture through cron. That is, if the cron runs the script, then the picture is not generated, but if you run it directly (by url), then everything works. The picture is saved next to the script on the hosting. What could be the snag?
Answer the question
In order to leave comments, you need to log in
1. before putting the program in cron, it is logical to try to run it manually in the console.
2. In the first line in the crontab write
[email protected]
Most likely that you do not understand the principle of "the current directory". And don't use absolute paths
The simplest explanation is that the GD is not connected in CLI mode.
But this can be verified by looking at the logs.
And the logs should be looked at first of all, and not create questions on the toaster.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question