westman Posted February 9, 2012 Share Posted February 9, 2012 hi every one this is my 1st post in "General" i was wondering if anyone have info on a cron job Command? i am trying to get a .php file to run every day or hour, the .php file is in my root folder Link to comment Share on other sites More sharing options...
justsomeguy Posted February 9, 2012 Share Posted February 9, 2012 This describes running PHP on a command line: http://www.php.net/manual/en/features.commandline.php Link to comment Share on other sites More sharing options...
davidb52 Posted February 9, 2012 Share Posted February 9, 2012 I love this tutorials about cron jobs http://net.tutsplus.com/tutorials/php/managing-cron-jobs-with-php-2/ Link to comment Share on other sites More sharing options...
westman Posted February 9, 2012 Author Share Posted February 9, 2012 i was wondering if i could get help in the command due to... /usr/bin/php -q /home/user_name/public_html/somewhere/file.phpphp -q /home/user_name/public_html/somewhere/file.phpphp /home/user_name/public_html/somewhere/file.php not working for mei would just like to run the php file Link to comment Share on other sites More sharing options...
justsomeguy Posted February 9, 2012 Share Posted February 9, 2012 Log in through SSH so you can run those commands on the shell to check for error messages. If you need an SSH client, Putty is a good one. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.