oledaveoh Posted January 29, 2011 Share Posted January 29, 2011 Hello, I have a php file which i want to run daily which grabs one row from a table in my database and inserts into another. I have been researching how to run cron jobs with php files and so far my efforts have failed Heres what i enter into the command line: lynx -dump http://www.mydomain.com/cron_script.php i have obviously replaced mydomain with my actual websites domain, but it do not seem to have an effect. Ant help or suggestions would be great. Thanks! Link to comment https://forums.phpfreaks.com/topic/226044-how-to-run-a-php-file-with-cron-management/ Share on other sites More sharing options...
trq Posted January 29, 2011 Share Posted January 29, 2011 You haven't exactly described your problem. The first thing I would ask is why are you using php to do a mysql task in the first place? The second would be why (if really you need to use php) are you executing your script via a request to your http server? Link to comment https://forums.phpfreaks.com/topic/226044-how-to-run-a-php-file-with-cron-management/#findComment-1166955 Share on other sites More sharing options...
oledaveoh Posted January 30, 2011 Author Share Posted January 30, 2011 Thanks for the reply,but i managed to sort it out. Sorry about my lack of clarity on the problem, it was a mysql command withen a php file and nothing else, which i needed to run at a particular time, daily, to display different information. Link to comment https://forums.phpfreaks.com/topic/226044-how-to-run-a-php-file-with-cron-management/#findComment-1167520 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.