P.Z. Low Cost CPanel Web Hosting  

Go Back   P.Z. Low Cost CPanel Web Hosting > Page-Zone Web Hosting Main Forum > General FAQ > General Questions and Comments

General Questions and Comments Post your question or grace us with your knowledge. Posting limited to registered members.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
call php from cron
Old
  (#1 (permalink))
overload
Registered User
overload is on a distinguished road
 
Status: Offline
Posts: 4
Join Date: Apr 2003
Location: Romania
Rep Power: 0
call php from cron - 04-05-2003, 04:35 PM

How to call a PHP page from a cron?
   
Reply With Quote
Old
  (#2 (permalink))
dsh0105
Registered User
dsh0105 is on a distinguished road
 
Status: Offline
Posts: 3
Join Date: Mar 2003
Rep Power: 0
04-18-2003, 04:28 PM

I know this question was asked some time ago, and the orginal poster may have an answer by now, but I thought it might help someone (like me) who searched for info on cron jobs...
All you have to do setup a cron job with something like this as the command:

lynx --dump http://www.yoursite.com/yourpage.php >/dev/null

This cause the lynx browser to "view", just like any web user would then dump the output to /dev/null (nowhere...). If the script resides in a password protected area, you can do this:

lynx -auth=user : pass --dump http://www.yoursite.com/yourpage.php >/dev/null
(remove spaces before and after : added to prevent creating a bbcode)
When the cron job runs, so will will your script.

Hope this helps!

David Hamilton
   
Reply With Quote
Old
  (#3 (permalink))
overload
Registered User
overload is on a distinguished road
 
Status: Offline
Posts: 4
Join Date: Apr 2003
Location: Romania
Rep Power: 0
04-19-2003, 06:13 AM

It works!

Thanks a lot!!!
   
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron job runs twice ldesign General Questions and Comments 2 01-09-2007 01:41 AM
cron backup cmyksteve Tips 0 10-21-2006 12:34 AM
Help with Cron Job neumannu47 General Questions and Comments 3 04-10-2005 11:39 PM
PHP and cron midwest General Questions and Comments 1 05-12-2004 12:48 PM
Using CRON for a php script? fshagan General Questions and Comments 2 05-15-2003 03:08 AM


Live Help



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC6
vBulletin Skin developed by: vBStyles.com
Copyright © 2002 Page-Zone Web Hosting. All rights reserved.
Smilies provided by Crack's Smilies http://www.mysmilies.com