Jump to content

How to run a php file with cron management ?


oledaveoh

Recommended Posts

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!

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?

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.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.