FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
running PHP as a cron job

 
Post new topic   Reply to topic    Cambodia eXPlore Forum Index -> General Webmaster
Author Message
guitarman
fourth grade


Joined: 04 Nov 2005
Posts: 728

PostPosted: Thu Mar 15, 2007 11:28 pm    Post subject: running PHP as a cron job Reply with quote

I was doing some scripting today on text retrieval as one of my personal project and found that I need to do a cron job to make sure the script (based on PHP) to run every day. However, using the cron job coming with CPanel seems hard at first as it won't allow me to simply put up the .php files into the command.

After hours of searching, the answer can be found here> http://www.webmasterworld.com/forum88/6102.htm

the command is : php -q /home/serverpath/script/filename.php

Hope this would help someone in the same position as me Smile

Back to top
indogo
fourth grade


Joined: 03 May 2006
Posts: 223

PostPosted: Thu Mar 15, 2007 11:52 pm    Post subject: Reply with quote



Cheers for that...you've just triggered an idea and my new host can do cron jobs Very Happy

regards

mike

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cambodia eXPlore Forum Index -> General Webmaster All times are GMT + 8 Hours
Page 1 of 1



by phpBB