webref.eu Posted January 12, 2009 Share Posted January 12, 2009 If I want to get a .php script to run daily, how do I do that with a cron job? Below is a link to what I have available in my cPanel control panel, and I see I have a field for "Command to run", but what command should I be entering? http://www.webref.eu/images/standard-cron-manager.gif Many thanks Quote Link to comment Share on other sites More sharing options...
Mchl Posted January 12, 2009 Share Posted January 12, 2009 It would be something like /usr/bin/php /pathToYourDocumentRoot/script.php You should check with your hosting if php is indeed in /usr/bin/ and what is the path to your document root. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.