Trouble using Cron with PHP script

software development

#1

Hello,

I’m trying to set a weekly cron job that executes a .php script. In the web panel I’m using the following command:

/usr/local/php5/bin/php home//cron/test.php

I am receiving the following message: “Could not open input file: home//cron/test.php”

I have set the permissions to executable, and included #!/usr/local/bin/php -q before the first <?php tag.

What am I missing with this process?

Thanks for any help you can give!


#2

A forward slash before “home”.


#3

wow…thanks!