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 Link to comment https://forums.phpfreaks.com/topic/140572-cron-job-help/ 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. Link to comment https://forums.phpfreaks.com/topic/140572-cron-job-help/#findComment-735635 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.