Re: [PHP] PHP + Cron jobs

2008-10-01 Thread Waynn Lue
On Mon, Sep 29, 2008 at 9:34 AM, Richard Lynch [EMAIL PROTECTED] wrote: If you are running PHP as CGI, replacing the CGI with CLI could be problematic down the road... Right, and I am, so I stayed away from that solution. My next attempt was to specify /usr/local/bin/php in the cron job,

Re: [PHP] PHP + Cron jobs

2008-10-01 Thread Per Jessen
Waynn Lue wrote: Right, and I am, so I stayed away from that solution. My next attempt was to specify /usr/local/bin/php in the cron job, but that led to a problem because of the include paths. Now that I specific the full path, evidently the include path no longer is relative to the

Re: [PHP] PHP + Cron jobs

2008-09-29 Thread Shawn McKenzie
Shawn McKenzie wrote: Waynn Lue wrote: Yup, you're completely right. I checked the cronjob and got this: PHP 5.2.6 (cgi) (built: Aug 11 2008 13:39:32) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with Advanced PHP Debugger (APD)

Re: [PHP] PHP + Cron jobs

2008-09-29 Thread Shawn McKenzie
Waynn Lue wrote: Yup, you're completely right. I checked the cronjob and got this: PHP 5.2.6 (cgi) (built: Aug 11 2008 13:39:32) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with Advanced PHP Debugger (APD) v0.9, , by George

Re: [PHP] PHP + Cron jobs

2008-09-29 Thread Nathan Rixham
Shawn McKenzie wrote: Shawn McKenzie wrote: Waynn Lue wrote: Yup, you're completely right. I checked the cronjob and got this: PHP 5.2.6 (cgi) (built: Aug 11 2008 13:39:32) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with Advanced

RE: [PHP] PHP + Cron jobs

2008-09-29 Thread Richard Lynch
If you are running PHP as CGI, replacing the CGI with CLI could be problematic down the road... From: Waynn Lue [mailto:[EMAIL PROTECTED] Sent: Sunday, September 28, 2008 6:12 AM To: Richard Lynch Cc: Per Jessen; php-general@lists.php.net Subject: Re: [PHP] PHP + Cron jobs Yup, you're

Re: [PHP] PHP + Cron jobs

2008-09-29 Thread Eric Butera
On Mon, Sep 29, 2008 at 11:59 AM, Nathan Rixham [EMAIL PROTECTED] wrote: Shawn McKenzie wrote: Shawn McKenzie wrote: Waynn Lue wrote: Yup, you're completely right. I checked the cronjob and got this: PHP 5.2.6 (cgi) (built: Aug 11 2008 13:39:32) Copyright (c) 1997-2008 The PHP Group

Re: [PHP] PHP + Cron jobs

2008-09-28 Thread Waynn Lue
Yup, you're completely right. I checked the cronjob and got this: PHP 5.2.6 (cgi) (built: Aug 11 2008 13:39:32) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with Advanced PHP Debugger (APD) v0.9, , by George Schlossnagle Turns out

[PHP] PHP + Cron jobs

2008-09-27 Thread Waynn Lue
This is something that I've noticed for awhile, but last post to this mailing list reminded me that someone probably already knows how to work around this! I have a cron job that looks something like 12 6 * * * php /home/foo/temp.php But even if temp.php doesn't output anything, I still get

Re: [PHP] PHP + Cron jobs

2008-09-27 Thread Per Jessen
Waynn Lue wrote: This is something that I've noticed for awhile, but last post to this mailing list reminded me that someone probably already knows how to work around this! I have a cron job that looks something like 12 6 * * * php /home/foo/temp.php But even if temp.php doesn't output

Re: [PHP] PHP + Cron jobs

2008-09-27 Thread Waynn Lue
This is something that I've noticed for awhile, but last post to this mailing list reminded me that someone probably already knows how to work around this! I have a cron job that looks something like 12 6 * * * php /home/foo/temp.php But even if temp.php doesn't output anything,

Re: [PHP] PHP + Cron jobs

2008-09-27 Thread Per Jessen
Waynn Lue wrote: I actually am using MAILTO, and that's where the problem is. A cronjob only mails when there actually is output, which I'm fine with. In fact, when I run php temp.php from the command line, I don't get any output. But when it's part of the cronjob, there's that

Re: [PHP] PHP + Cron jobs

2008-09-27 Thread Waynn Lue
Hm looks like it's CLI. $ php -v PHP 5.2.6 (cli) (built: Aug 11 2008 13:36:00) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with Advanced PHP Debugger (APD) v0.9, , by George Schlossnagle

Re: [PHP] PHP + Cron jobs

2008-09-27 Thread Per Jessen
Waynn Lue wrote: Hm looks like it's CLI. $ php -v PHP 5.2.6 (cli) (built: Aug 11 2008 13:36:00) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with Advanced PHP Debugger (APD) v0.9, , by George Schlossnagle Yep, looks good - check

Re: [PHP] PHP + Cron jobs

2008-09-27 Thread Thodoris
O/H Waynn Lue ??: This is something that I've noticed for awhile, but last post to this mailing list reminded me that someone probably already knows how to work around this! I have a cron job that looks something like 12 6 * * * php /home/foo/temp.php But even if temp.php doesn't output

RE: [PHP] PHP + Cron jobs

2008-09-27 Thread Richard Lynch
. From: Waynn Lue [EMAIL PROTECTED] Sent: Saturday, September 27, 2008 4:21 AM To: PHP General list Subject: [PHP] PHP + Cron jobs This is something that I've noticed for awhile, but last post to this mailing list reminded me that someone probably already knows

RE: [PHP] PHP + Cron jobs

2008-09-27 Thread Richard Lynch
From: Waynn Lue [EMAIL PROTECTED] Sent: Saturday, September 27, 2008 6:04 AM To: Per Jessen Cc: php-general@lists.php.net Subject: Re: [PHP] PHP + Cron jobs This is something that I've noticed for awhile, but last post to this mailing list reminded me

RE: [PHP] PHP + Cron jobs

2008-09-27 Thread Richard Lynch
___ O/H Waynn Lue ??: Perhaps this would do the job much better. 12 6 * * * php -f /home/foo/temp.php Probably no different, unless the new-fangled -f implies -q, and he's running the new version of PHP, which I doubt. Also consider an alternative

Re: [PHP] PHP Cron jobs

2001-01-27 Thread mick
The best way really is a cron job ... maybe you need a new ISP or a new sysadmin. Mick What would be the best way of getting the script to run on a timed basis, ideally the times and frequency of the script running defined in either the script its self, or another script. The

Re: [PHP] PHP Cron jobs

2001-01-27 Thread Egan
On Sat, 27 Jan 2001 18:05:08 +1030, "James Mclean" [EMAIL PROTECTED] wrote: i do not have access to the cron system on my server The Sysadmin for the server is absolutly useless, so getting him to submit a cron job is no good. any ideas?? My idea: We provide user cron access with

[PHP] PHP Cron jobs

2001-01-26 Thread James Mclean
List, i do not have access to the cron system on my server, but would like to write a script that does some general housekeeping on my database, and various other things like removing old users, sending some newsletters etc... What would be the best way of getting the script to run on a