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! Quote Link to comment 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? Quote Link to comment 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. 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.