Вопрос

I trie to run a php file. The hoster allow me to write just a file name, I cant' change

php -f /home/a4833978/

. I tried this but the file don't run enter image description here

Это было полезно?

Решение

Use * * * * * instead of 1 1 * * * if you want your script to run every minute. Your example would run once a day at 01:01.

In case you really want to run it once a day, check if your script works when executed directly.

Другие советы

Your issue is probably in your php file. If you do it in the way you did, all of your php includes will be messed up.

try to do it like this

cd /dir1/dir2/dir3/prod/update/ && php updater.php

also, make sure that files have executable tag on them.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top