Jump to content

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.

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.