Question

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

Était-ce utile?

La solution

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.

Autres conseils

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top