X
X
XenK2015-03-17 09:01:30
PHP
XenK, 2015-03-17 09:01:30

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

2 answer(s)
F
FanatPHP, 2015-03-17
@XenK

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

O
OnYourLips, 2015-03-17
@OnYourLips

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 question

Ask a Question

731 491 924 answers to any question