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

Was it helpful?

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.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top