RE: [PHP] Cron and archives

From: Date: Fri, 13 Oct 2000 01:44:48 +0000
Subject: RE: [PHP] Cron and archives
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-19928@lists.php.net to get a copy of this message
Assuming you are allowed to run cron jobs...try these If you have PHP as a CGI: 14,29,44,59 * * * * /path/to/php/cgi/php -f /path/to/php/cgi-script If you only have it as a module: 14,29,44,59 * * * * lynx --dump http://full.url.to/script?with=and-params&you=need&to=pass On your linux box, type: crontab -e and put those line(s) in there. I use the first one (using the CGI) with no problems. marco -----Original Message----- From: Maxim Maletsky [mailto:maxim@japaninc.net] Sent: Thursday, October 12, 2000 6:40 PM To: 'PHP General List. (E-mail)' Subject: [PHP] Cron and archives Hi guys, I've seen dozens of postings here about how to use cron so I though: whenever I'll need it just go to archives. And so I did. But, archives did not answer my questions at all. Sure I found lot's of staff, but trying it all it still doesn't work, I guess I'm lost in some details. my question is easy: Step by step explain me how to run a php file with cron every 15 minutes. What do I have to write in cron, what (if needed) to be modified in the script, what are the php configurations necessary to do this kind of job. My Data: System: PHP 4.0.1pl2 on Linux PHP file: think about it this way: connects to localhost thought a specified port (443 SSL), if fails a warning email is being sent Tests made: Working perfectly from browser, but not cron, cron log claims that it activated the file, however I see no email sent, no MySQL entry .. All I need is to step by step instructions on what to do, where to check, and how to do it. I would really appreciate your help. Thanks ! P.S: this email can also be useful for later achieve searches. Maxim Maletsky - maxim@j-door.com <mailto:maxim@j-door.com> Webmaster, J-Door.com / J@pan Inc. LINC Media, Inc. TEL: 03-3499-2175 x 1271 FAX: 03-3499-3109 http://www.j-door.com <http://www.j-door.com/> http://www.japaninc.net <http://www.japaninc.net/> http://www.lincmedia.co.jp <http://www.lincmedia.co.jp/>

« previous php.general (#19928) next »