Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- cron jobs in PHP admin to run a PHP file
May 27, 2008, 6:17 pm
rate this thread
I want to run a php script every day. The page goes to a directory
parses a file and adds data to the database. Where it says "command"
in cron jobs I don't know what it is looking for? Can I put the name
of my php file?
This is what I have:
Minute Hour Day Month Weekday Command
1 8 1-7 1-31
The reason I am asking is I don't have a clue what PHPadmin wants in
the command box. All I want to do is run the php script.
Re: cron jobs in PHP admin to run a PHP file
The program needs to be your PHP CLI executable. Parameter should be
-f <your script filename>
(You can leave out the -f - but I leave it in for clarity).
Ensure the cron user has permission to execute your php executable and
read access to the script (plus the appropriate access to any other
Remove the "x" from my email address
JDS Computer Training Corp.