lilman Posted June 2, 2007 Share Posted June 2, 2007 I would like to set it up so certain scripts will run daily to update the database without it being done manually. So I would like to create a file that runs once a day to update information in my database. Thus I was wondering if anyone could lead me to how I can do this. If this is too vague and you need more information to answer my question, please ask for more info. Thank you Quote Link to comment https://forums.phpfreaks.com/topic/54026-update-information-daily/ Share on other sites More sharing options...
pocobueno1388 Posted June 2, 2007 Share Posted June 2, 2007 You need a cron job. You can usually set them up in the control panel you host offers. It all just depends on if your host offers that feature or not. Quote Link to comment https://forums.phpfreaks.com/topic/54026-update-information-daily/#findComment-267101 Share on other sites More sharing options...
lilman Posted June 2, 2007 Author Share Posted June 2, 2007 Okay, thank you. I just checked out my control panel and I do have cron job. Should I put the path to the file I want run for Command to run? Quote Link to comment https://forums.phpfreaks.com/topic/54026-update-information-daily/#findComment-267125 Share on other sites More sharing options...
pocobueno1388 Posted June 2, 2007 Share Posted June 2, 2007 Yes, put the entire path to the file. You might have to put "php" in front of it. So it would look like this: php /folder/folder1/anotherfolder/yourfile.php Quote Link to comment https://forums.phpfreaks.com/topic/54026-update-information-daily/#findComment-267127 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.