Re: [PHP] cron job problem

2012-10-23 Thread Ashley Sheridan
On Tue, 2012-10-23 at 18:51 -0400, Jim Giner wrote: > On 10/23/2012 6:57 PM, Ashley Sheridan wrote: > > On Tue, 2012-10-23 at 18:36 -0400, Jim Giner wrote: > > > >> On 10/23/2012 6:18 PM, David OBrien wrote: > >>> On Tue, Oct 23, 2012 at 5:31 PM, Daniel Brown wrote: > >>> > On Tue, Oct 23, 2

Re: [PHP] cron job problem

2012-10-23 Thread Jim Giner
On 10/23/2012 6:57 PM, Ashley Sheridan wrote: On Tue, 2012-10-23 at 18:36 -0400, Jim Giner wrote: On 10/23/2012 6:18 PM, David OBrien wrote: On Tue, Oct 23, 2012 at 5:31 PM, Daniel Brown wrote: On Tue, Oct 23, 2012 at 5:34 PM, Ashley Sheridan wrote: Crontab is the daemon which runs cron

Re: [PHP] cron job problem

2012-10-23 Thread Ashley Sheridan
On Tue, 2012-10-23 at 18:36 -0400, Jim Giner wrote: > On 10/23/2012 6:18 PM, David OBrien wrote: > > On Tue, Oct 23, 2012 at 5:31 PM, Daniel Brown wrote: > > > >> On Tue, Oct 23, 2012 at 5:34 PM, Ashley Sheridan > >> wrote: > >>> > >>> > >>> Crontab is the daemon which runs cron jobs, and some d

Re: [PHP] cron job problem

2012-10-23 Thread Jim Giner
On 10/23/2012 6:18 PM, David OBrien wrote: On Tue, Oct 23, 2012 at 5:31 PM, Daniel Brown wrote: On Tue, Oct 23, 2012 at 5:34 PM, Ashley Sheridan wrote: Crontab is the daemon which runs cron jobs, and some distros have set up special files called cron.daily (or daily.cron I don't recall), c

Re: [PHP] cron job problem

2012-10-23 Thread David OBrien
On Tue, Oct 23, 2012 at 5:31 PM, Daniel Brown wrote: > On Tue, Oct 23, 2012 at 5:34 PM, Ashley Sheridan > wrote: > > > > > > Crontab is the daemon which runs cron jobs, and some distros have set up > > special files called cron.daily (or daily.cron I don't recall), > > cron.hourly, etc to make i

Re: [PHP] cron job problem

2012-10-23 Thread Daniel Brown
On Tue, Oct 23, 2012 at 5:34 PM, Ashley Sheridan wrote: > > > Crontab is the daemon which runs cron jobs, and some distros have set up > special files called cron.daily (or daily.cron I don't recall), > cron.hourly, etc to make it easier to schedule jobs. Quick clarification and correction he

Re: [PHP] cron job problem

2012-10-23 Thread Ashley Sheridan
On Tue, 2012-10-23 at 17:12 -0400, Jim Giner wrote: > > > On 10/23/2012 5:19 PM, Ashley Sheridan wrote: > > > > > On Tue, 2012-10-23 at 16:59 -0400, Jim Giner wrote: > > > > > On 10/23/2012 4:56 PM, Daniel Brown wrote: > > > > On Tue, Oct 23, 2012 at 4:48 PM, Jim Giner > > > > wrote: > > >

Re: [PHP] cron job problem

2012-10-23 Thread Ashley Sheridan
On Tue, 2012-10-23 at 16:59 -0400, Jim Giner wrote: > On 10/23/2012 4:56 PM, Daniel Brown wrote: > > On Tue, Oct 23, 2012 at 4:48 PM, Jim Giner > > wrote: > >> I have a php script that has been triggered by my hoster's cron process(?) > >> to run once a day since last March. It's been running f

Re: [PHP] cron job problem

2012-10-23 Thread Daniel Brown
On Tue, Oct 23, 2012 at 4:59 PM, Jim Giner wrote: >> > Yes - same msg same time If it wouldn't be a problem, can you provide the script here (or on a site like Pastebin), as well as the crontab time entry for this? While checking the crontab, make sure a duplicate entry for this wasn't someho

Re: [PHP] cron job problem

2012-10-23 Thread Jim Giner
On 10/23/2012 4:56 PM, Daniel Brown wrote: On Tue, Oct 23, 2012 at 4:48 PM, Jim Giner wrote: I have a php script that has been triggered by my hoster's cron process(?) to run once a day since last March. It's been running fine - and I've made no changes to it. Suddenly in the last couple of d

Re: [PHP] cron job problem

2012-10-23 Thread Daniel Brown
On Tue, Oct 23, 2012 at 4:48 PM, Jim Giner wrote: > I have a php script that has been triggered by my hoster's cron process(?) > to run once a day since last March. It's been running fine - and I've made > no changes to it. Suddenly in the last couple of days it is running twice > it seems. The

[PHP] cron job problem

2012-10-23 Thread Jim Giner
I have a php script that has been triggered by my hoster's cron process(?) to run once a day since last March. It's been running fine - and I've made no changes to it. Suddenly in the last couple of days it is running twice it seems. The whole process sends an email at its conclusion and the

Re: [PHP] PHP cron job optimization

2011-09-12 Thread Igor Escobar
@Eric ok ;) Regards, Igor Escobar *Software Engineer * + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar On Mon, Sep 12, 2011 at 10:52 AM, Eric Butera wrote: > On Mon, Sep 12, 2011 at 9:37 AM, Igor Escobar > wrote: > > Other goo

Re: [PHP] PHP cron job optimization

2011-09-12 Thread Eric Butera
On Mon, Sep 12, 2011 at 9:37 AM, Igor Escobar wrote: > Other good point is: always set a timeout connection when you're getting the > RSS data to avoid your thread get stuck unnecessary. Use cURL (is much more > faster then file_get_contents). > > Multithreading in PHP with cURL http://devzone.zen

Re: [PHP] PHP cron job optimization

2011-09-12 Thread Igor Escobar
Other good point is: always set a timeout connection when you're getting the RSS data to avoid your thread get stuck unnecessary. Use cURL (is much more faster then file_get_contents). Multithreading in PHP with cURL http://devzone.zend.com/article/3341 Regards, Igor Escobar *Software Engineer *

Re: [PHP] PHP cron job optimization

2011-09-12 Thread Igor Escobar
Use PHP threads. Do the job separately.. in parts... in other words... you can't read all them at once. You can read a little more about php multithreading here: http://blog.motane.lu/2009/01/02/multithreading-in-php/ You can use a non-relational database like mongo or couchdb to manage where you

Re: [PHP] PHP cron job optimization

2011-09-10 Thread Stuart Dallas
On 10 Sep 2011, at 09:35, muad shibani wrote: > I want to design an application that reads news from RSS sources. > I have about 1000 RSS feed to collect from. > > I also will use Cron jobs every 15 minutes to collect the data. > the question is: Is there a clever way to collect all those feed it

Re: [PHP] PHP cron job optimization

2011-09-10 Thread Eric Butera
On Sat, Sep 10, 2011 at 1:47 PM, Sean Greenslade wrote: > On Sat, Sep 10, 2011 at 4:35 AM, muad shibani wrote: > >> I want to design an application that reads news from RSS sources. >> I have about 1000 RSS feed to collect from. >> >> I also will use Cron jobs every 15 minutes to collect the data.

Re: [PHP] PHP cron job optimization

2011-09-10 Thread MUAD SHIBANI
thanks a lot after I test it I will share the code .. Thanks again On Sat, Sep 10, 2011 at 11:20 AM, Gary Golden wrote: > > I want to design an application that reads news from RSS sources. > >> I have about 1000 RSS feed to collect from. > >> > >> I also will use Cron jobs every 15 minutes to c

Re: [PHP] PHP cron job optimization

2011-09-10 Thread Gary Golden
> I want to design an application that reads news from RSS sources. >> I have about 1000 RSS feed to collect from. >> >> I also will use Cron jobs every 15 minutes to collect the data. >> the question is: Is there a clever way to collect all those feed items >> without exhausting the server >> any

Re: [PHP] PHP cron job optimization

2011-09-10 Thread Sean Greenslade
On Sat, Sep 10, 2011 at 4:35 AM, muad shibani wrote: > I want to design an application that reads news from RSS sources. > I have about 1000 RSS feed to collect from. > > I also will use Cron jobs every 15 minutes to collect the data. > the question is: Is there a clever way to collect all those f

[PHP] PHP cron job optimization

2011-09-10 Thread muad shibani
I want to design an application that reads news from RSS sources. I have about 1000 RSS feed to collect from. I also will use Cron jobs every 15 minutes to collect the data. the question is: Is there a clever way to collect all those feed items without exhausting the server any Ideas Thank you in

Re: [PHP] Re: PHP + Cron jobs

2008-10-01 Thread Per Jessen
Waynn Lue wrote: > Oh, I thought having one for cgi and one for cli was common. Do people > generally run only one, regardless of whether they're hitting it from > a webserver or running it from the commandline? I think the general setup is a php cli executable in /usr/bin/php and the php apache

[PHP] Re: PHP + Cron jobs

2008-10-01 Thread Waynn Lue
Oh, I thought having one for cgi and one for cli was common. Do people generally run only one, regardless of whether they're hitting it from a webserver or running it from the commandline? Thanks, Waynn On 10/1/08, Per Jessen <[EMAIL PROTECTED]> wrote: > Waynn Lue wrote: > >> Right, and I am, so

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 > d

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 jo

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

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&#x

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 PHP

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 Sc

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 Debugg

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 there's

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 solutio

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 &g

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

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 an

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 -

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: > 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 > conten

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 o

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

[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 emai

Re: [PHP] Pass parameters via url inside a php cron job

2008-09-25 Thread Daniel Brown
On Thu, Sep 25, 2008 at 6:34 AM, Merlin Morgenstern <[EMAIL PROTECTED]> wrote: > Hello Jochem, > > thank you this has solved my problem: > bla.php 2 > $tf = $argv[1]; Conversely, on a *NIX system, if you want to grab it via the web - locally or from a remote server - you can do this: * * * *

Re: [PHP] Pass parameters via url inside a php cron job

2008-09-25 Thread Merlin Morgenstern
Hello Jochem, thank you this has solved my problem: bla.php 2 $tf = $argv[1]; Best regards, Merlin Jochem Maas wrote: Merlin Morgenstern schreef: Hi there, I would like to run a php file via cron job and there is a parameter to be passed. Unfortunatelly this does not work: # /usr/local/bin

Re: [PHP] Pass parameters via url inside a php cron job

2008-09-25 Thread Jochem Maas
Merlin Morgenstern schreef: > Hi there, > > I would like to run a php file via cron job and there is a parameter to > be passed. Unfortunatelly this does not work: > > # /usr/local/bin/php /home/www/create_notification_emails.php?tf=2 > Could not open input file: /home/www/create_notification_ema

Re: [PHP] Pass parameters via url inside a php cron job

2008-09-25 Thread Aschwin Wesselius
Merlin Morgenstern wrote: Hi there, I would like to run a php file via cron job and there is a parameter to be passed. Unfortunatelly this does not work: # /usr/local/bin/php /home/www/create_notification_emails.php?tf=2 Could not open input file: /home/www/create_notification_emails.php?tf=2

[PHP] Pass parameters via url inside a php cron job

2008-09-25 Thread Merlin Morgenstern
Hi there, I would like to run a php file via cron job and there is a parameter to be passed. Unfortunatelly this does not work: # /usr/local/bin/php /home/www/create_notification_emails.php?tf=2 Could not open input file: /home/www/create_notification_emails.php?tf=2 The problem seems to be t

Re: [PHP] Cron php & refresh

2008-04-20 Thread Børge Holen
On Sunday 20 April 2008 13:37:04 Per Jessen wrote: > Børge Holen wrote: > > Is the MTA operational on the server? if so, forget > > mailing with php and rather use php to access the mta. > > Yeah, that is what mail() does - it calls sendmail. > > > /Per Jessen, Zürich What the point of 50 mails no

Re: [PHP] Cron php & refresh

2008-04-20 Thread Jason Norwood-Young
On Sun, 2008-04-20 at 13:32 -0500, Larry Garfield wrote: > On Sunday 20 April 2008, Jeffrey wrote: > > I'm working on an application that includes e-mail notifications of > > certain events. Because the application will have hundreds or thousands > > of users, I've designed it so that e-mail notif

Re: [PHP] Cron php & refresh

2008-04-20 Thread Larry Garfield
On Sunday 20 April 2008, Jeffrey wrote: > I'm working on an application that includes e-mail notifications of > certain events. Because the application will have hundreds or thousands > of users, I've designed it so that e-mail notifications are saved to a > MySQL table. Then a regular cron job run

Re: [PHP] Cron php & refresh

2008-04-20 Thread Per Jessen
Børge Holen wrote: > Is the MTA operational on the server? if so, forget > mailing with php and rather use php to access the mta. Yeah, that is what mail() does - it calls sendmail. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] Cron php & refresh

2008-04-20 Thread Per Jessen
Jeffrey wrote: > Per Jessen wrote: >> Jeffrey wrote: >> >>> I'm working on an application that includes e-mail notifications of >>> certain events. Because the application will have hundreds or >>> thousands of users, I've designed it so that e-mail notifications >>> are saved to a MySQL table. T

Re: [PHP] Cron php & refresh

2008-04-20 Thread Jeffrey
Per Jessen wrote: Jeffrey wrote: I'm working on an application that includes e-mail notifications of certain events. Because the application will have hundreds or thousands of users, I've designed it so that e-mail notifications are saved to a MySQL table. Then a regular cron job runs a php pag

Re: [PHP] Cron php & refresh

2008-04-20 Thread Børge Holen
On Sunday 20 April 2008 11:27:38 Jeffrey wrote: > I'm working on an application that includes e-mail notifications of > certain events. Because the application will have hundreds or thousands > of users, I've designed it so that e-mail notifications are saved to a > MySQL table. Then a regular cron

Re: [PHP] Cron php & refresh

2008-04-20 Thread Per Jessen
Jeffrey wrote: > I'm working on an application that includes e-mail notifications of > certain events. Because the application will have hundreds or > thousands of users, I've designed it so that e-mail notifications are > saved to a MySQL table. Then a regular cron job runs a php page to > select

[PHP] Cron php & refresh

2008-04-20 Thread Jeffrey
I'm working on an application that includes e-mail notifications of certain events. Because the application will have hundreds or thousands of users, I've designed it so that e-mail notifications are saved to a MySQL table. Then a regular cron job runs a php page to select the data from the tab

[PHP] Re: php cron to check and remove files

2008-03-13 Thread Shawn McKenzie
Steven Macintyre wrote: > Hi, > > I need to be able to do the following procedure; > > retrieve all items from a mysql db table, then check to see if the files from > that table exist on the server (images), if not, to "clean up" and remove the > physical file - so that only the files from the

Re: [PHP] php cron to check and remove files

2008-03-13 Thread tedd
At 9:35 AM +0100 3/13/08, Steven Macintyre wrote: Hi, I need to be able to do the following procedure; retrieve all items from a mysql db table, then check to see if the files from that table exist on the server (images), if not, to "clean up" and remove the physical file - so that only the

[PHP] Re: php cron to check and remove files

2008-03-13 Thread Al
I handle your object a different and, I believe, a simpler way. Instead of a cronjob, I call a cleanup function whenever a page is opened. Obviously, this approach requires a time overhead and thus is not good for very high volume sites. You can mitigate this drawback by maintaining a simple t

Re: [PHP] php cron to check and remove files

2008-03-13 Thread Per Jessen
Steven Macintyre wrote: > retrieve all items from a mysql db table, then check to see if the > files from that table exist on the server (images), if not, to "clean > up" and remove the physical file - so that only the files from the db > exist. When you are comparing the contents of disk vs. db,

Re: [PHP] php cron to check and remove files

2008-03-13 Thread Aschwin Wesselius
Steven Macintyre wrote: Hi, I need to be able to do the following procedure; retrieve all items from a mysql db table, then check to see if the files from that table exist on the server (images), if not, to "clean up" and remove the physical file - so that only the files from the db exist.

Re: [PHP] php cron to check and remove files

2008-03-13 Thread Aschwin Wesselius
Steven Macintyre wrote: Do you already have some code? Do you got stuck somewhere? No, i didnt even know where to start with the flow; but sitting on the toilet produces wonderfull ideas! What makes sitting on a toilet any difference than sitting anywhere else? Is it a magic toiletsea

Re: [PHP] php cron to check and remove files

2008-03-13 Thread Steven Macintyre
>Do you already have some code? Do you got stuck somewhere? No, i didnt even know where to start with the flow; but sitting on the toilet produces wonderfull ideas! I have the following in mind; list the entire directory into an array, using a foreach to check on the db if the file exists, th

[PHP] php cron to check and remove files

2008-03-13 Thread Steven Macintyre
Hi, I need to be able to do the following procedure; retrieve all items from a mysql db table, then check to see if the files from that table exist on the server (images), if not, to "clean up" and remove the physical file - so that only the files from the db exist. This will run via cron Ha

Re: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-11 Thread Ivo F.A.C. Fokkema
On Thu, 10 Aug 2006 16:41:38 -0500, Richard Lynch wrote: > On Wed, August 9, 2006 3:14 am, Ivo F.A.C. Fokkema wrote: >> SO: Loading the GTK library in your /etc/php4/cli/php.ini, KILLS the >> PHP-cli functionality from cron. On Ubuntu Dapper, that is. Not sure >> about >> other distros. > > Proba

Re: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-10 Thread Richard Lynch
On Wed, August 9, 2006 3:14 am, Ivo F.A.C. Fokkema wrote: > SO: Loading the GTK library in your /etc/php4/cli/php.ini, KILLS the > PHP-cli functionality from cron. On Ubuntu Dapper, that is. Not sure > about > other distros. Probably because the PATH to the GTK.so file is not absolute in your php.

Re: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-09 Thread Ivo F.A.C. Fokkema
On Tue, 08 Aug 2006 17:07:29 +0200, Ivo F.A.C. Fokkema wrote: > On Tue, 08 Aug 2006 10:01:41 -0500, Ray Hauge wrote: > >> On Tuesday 08 August 2006 09:01, Ivo F.A.C. Fokkema wrote: >>> On Tue, 08 Aug 2006 09:01:42 -0500, Ray Hauge wrote: >>> > On Tuesday 08 August 2006 08:47, Ivo F.A.C. Fokkema w

RE: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-09 Thread Ivo F.A.C. Fokkema
On Tue, 08 Aug 2006 17:01:13 +0200, Arno Kuhl wrote: > Is there anything in your error log that says why it failed? (whatever > error_log points to in php.ini, or maybe what ErrorLog points to in > httpd.conf) > > Arno Hi Arno, thanks for your reply. However, the PHP-cli binary doesn't use the A

Re: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-08 Thread Ivo F.A.C. Fokkema
On Tue, 08 Aug 2006 10:01:41 -0500, Ray Hauge wrote: > On Tuesday 08 August 2006 09:01, Ivo F.A.C. Fokkema wrote: >> On Tue, 08 Aug 2006 09:01:42 -0500, Ray Hauge wrote: >> > On Tuesday 08 August 2006 08:47, Ivo F.A.C. Fokkema wrote: >> >> > Does the user running the cron have permission to execut

RE: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-08 Thread Arno Kuhl
Subject: [PHP] Cron running 'Hello world' script dies with "Could not startup." Hi guys, I'm really stuck with this error and since my backup scripts are no longer running automatically through cron, I really need to get this fixed soon :) Suddenly my backup scripts die

Re: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-08 Thread Ray Hauge
On Tuesday 08 August 2006 09:01, Ivo F.A.C. Fokkema wrote: > On Tue, 08 Aug 2006 09:01:42 -0500, Ray Hauge wrote: > > On Tuesday 08 August 2006 08:47, Ivo F.A.C. Fokkema wrote: > >> > Does the user running the cron have permission to execute the php > >> > binary? > >> > >> Yes, the file's owner is

RE: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-08 Thread Ivo F.A.C. Fokkema
On Tue, 08 Aug 2006 07:28:43 -0600, Jef Sullivan wrote: > Here is the cron command that we use. I've modified the path to the file for > security purposes. > > */5 * * 1-6 lynx -dump http://fully.qualified.path/cron_test.php > -auth=usr:pwd > > Jef Thanks for the reply. However, your example

Re: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-08 Thread Ivo F.A.C. Fokkema
On Tue, 08 Aug 2006 09:01:42 -0500, Ray Hauge wrote: > On Tuesday 08 August 2006 08:47, Ivo F.A.C. Fokkema wrote: >> > Does the user running the cron have permission to execute the php binary? >> >> Yes, the file's owner is me and it's my crontab. Also, I've made the file >> readable to all, just

Re: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-08 Thread Ray Hauge
On Tuesday 08 August 2006 08:47, Ivo F.A.C. Fokkema wrote: > > Does the user running the cron have permission to execute the php binary? > > Yes, the file's owner is me and it's my crontab. Also, I've made the file > readable to all, just in case. All directories up the directory tree are > readabl

Re: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-08 Thread Ivo F.A.C. Fokkema
On Tue, 08 Aug 2006 09:10:53 -0400, John Nichel wrote: > Ivo F.A.C. Fokkema wrote: >> Suddenly my backup scripts die with the error "Could not startup.". Only >> through the cron, it runs fine through the console. I've tried all kinds >> of tests with other PHP scripts, tried a different PC, asked

RE: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-08 Thread Jef Sullivan
11 AM To: php-general@lists.php.net Subject: Re: [PHP] Cron running 'Hello world' script dies with "Could not startup." Ivo F.A.C. Fokkema wrote: > Hi guys, > > I'm really stuck with this error and since my backup scripts are no > longer running automatical

Re: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-08 Thread John Nichel
Ivo F.A.C. Fokkema wrote: Hi guys, I'm really stuck with this error and since my backup scripts are no longer running automatically through cron, I really need to get this fixed soon :) Suddenly my backup scripts die with the error "Could not startup.". Only through the cron, it runs fine throu

[PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-08 Thread Ivo F.A.C. Fokkema
Hi guys, I'm really stuck with this error and since my backup scripts are no longer running automatically through cron, I really need to get this fixed soon :) Suddenly my backup scripts die with the error "Could not startup.". Only through the cron, it runs fine through the console. I've tried a

[PHP] cron via cPanel (revisited)

2006-04-08 Thread tedd
Hi gang: Well my host responded with a very helpful reply to my request for help, he said: -- quote -- Ok corn jobs is working on server. But my host says there is something wrong with the script. -Have a great day -- un-quote -- Now, it should be clear to everyone what the problem was -- I

Re: [PHP] cron via cPanel

2006-03-27 Thread John Nichel
tedd wrote: tedd wrote: In cPanel one can schedule cron jobs. In the command line box, what command do you enter to run a php script? John answered: Same way you run any other app. If it's in your path, you can just type the filename of the app, if not, give it the path... phpscript.php

Re: [PHP] cron via cPanel

2006-03-27 Thread tedd
tedd wrote: In cPanel one can schedule cron jobs. In the command line box, what command do you enter to run a php script? John answered: Same way you run any other app. If it's in your path, you can just type the filename of the app, if not, give it the path... phpscript.php /path/to/php

Re: [PHP] cron via cPanel

2006-03-27 Thread John Nichel
tedd wrote: Hi gang: In cPanel one can schedule cron jobs. In the command line box, what command do you enter to run a php script? Same way you run any other app. If it's in your path, you can just type the filename of the app, if not, give it the path... phpscript.php /path/to/phpscrip

[PHP] cron via cPanel

2006-03-27 Thread tedd
Hi gang: In cPanel one can schedule cron jobs. In the command line box, what command do you enter to run a php script? Thanks. tedd -- http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] PHP cron sendmail

2005-04-22 Thread Richard Lynch
Somewhat OT... Okay, maybe a lot OT... I have these cron jobs on a computer, and I want the email output from them. But I don't want sendmail running 24/7, and when it does run, I'd just as soon it *ONLY* processed email and sent it out, without even opening up port 25 and listening. I guess th

Re: [PHP] cron job style php...

2005-01-16 Thread Ligaya Turmelle
Check out here - http://www.htmlcenter.com/tutorials/tutorials.cfm/155/php/ and here - http://www.phpfreaks.com/tutorials/28/0.php and if you want to read about my learning with cron try here - http://www.khankennels.com/blog/index.php?p=103 Hope it all helps. Respectfully, Ligaya Turmelle Russell

Re: [PHP] cron job style php...

2005-01-16 Thread Bret Hughes
On Sun, 2005-01-16 at 17:00, Russell P Jones wrote: > I have written a simple script that when a date in an array matches todays > date, it sends an email (notifies me when bills are due). Any ideas on how > to make this run once a day? Can you do a cron job on a PHP prog? > > Russ Jones Never t

RE: [PHP] cron job style php...

2005-01-16 Thread Hans Zaunere
> I have written a simple script that when a date in an array matches todays > date, it sends an email (notifies me when bills are due). Any ideas on how > to make this run once a day? Can you do a cron job on a PHP prog? It can, and run basically like any other shell script. The first line need

Re: [PHP] cron job style php...

2005-01-16 Thread Randy Johnson
ROTECTED]> To: Sent: Sunday, January 16, 2005 6:00 PM Subject: [PHP] cron job style php... I have written a simple script that when a date in an array matches todays date, it sends an email (notifies me when bills are due). Any ideas on how to make this run once a day? Can you do a cron job on

[PHP] cron job style php...

2005-01-16 Thread Russell P Jones
I have written a simple script that when a date in an array matches todays date, it sends an email (notifies me when bills are due). Any ideas on how to make this run once a day? Can you do a cron job on a PHP prog? Russ Jones -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

[PHP] Cron Job in vDeck

2004-06-03 Thread Matt Palermo
Hey guys. I was wondering if anyone knows how to go about creating a cron job using vDeck (that's what is installed on the server) that just accesses a PHP file and runs everything in the PHP file. Does anyone know how to go about doing something like this? Thanks, Matt http://sweetphp.com --

Re: [PHP] cron job for php not working

2004-05-20 Thread Tim Traver
It looks like that cron line is making it so that the command runs as the user php... so, you should check if that user has permission to run the script. Tim. At 08:33 AM 5/20/2004, Merlin wrote: Hi there, I am trying to install following cron job: 0 6 * * * php /home/www/project/app_cron/follow_

Re: [PHP] cron job for php not working

2004-05-20 Thread James E Hicks III
On Thursday 20 May 2004 11:35 am, Jay Blanchard wrote: > At the command line type "which php" and it will return the full path to > php. Modify your line in the crontab with the full path... > > 0 6 * * * /usr/local/bin/php > /home/www/project/app_cron/follow_up_new_members.php I always put the #!

RE: [PHP] cron job for php not working

2004-05-20 Thread Jay Blanchard
[snip] I am trying to install following cron job: 0 6 * * * php /home/www/project/app_cron/follow_up_new_members.php The script works, if I run this "php /home..." line manually it works out, but it does not automaticaly at 6 am as supposed. I do also see in /var/log/messages that the cron job h

[PHP] cron job for php not working

2004-05-20 Thread Merlin
Hi there, I am trying to install following cron job: 0 6 * * * php /home/www/project/app_cron/follow_up_new_members.php The script works, if I run this "php /home..." line manually it works out, but it does not automaticaly at 6 am as supposed. I do also see in /var/log/messages that the cron job

RE: [PHP] Cron Jobs and php as apache module

2004-03-17 Thread Thijs Lensselink
Thijs Lensselink wrote on woensdag 17 maart 2004 12:17: > Daryl Meese wrote on woensdag 17 maart 2004 12:04: > >> Hello all, >> >> Ok, I run php as an apache module but need to have some php scripts >> called from a cron. Since you can't have php installed as a cgi & >> apache module I don't k

Re: [PHP] Cron Jobs and php as apache module

2004-03-17 Thread Robert Cummings
On Wed, 2004-03-17 at 06:03, Daryl Meese wrote: > Hello all, > > Ok, I run php as an apache module but need to have some php scripts called > from a cron. Since you can't have php installed as a cgi & apache module I > don't know how to do this. Possibly you can't have PHP configured in Apache

RE: [PHP] Cron Jobs and php as apache module

2004-03-17 Thread Thijs Lensselink
Daryl Meese wrote on woensdag 17 maart 2004 12:04: > Hello all, > > Ok, I run php as an apache module but need to have some php scripts > called from a cron. Since you can't have php installed as a cgi & > apache module I don't know how to do this. > > Any help would be appreciated. > > TIA >

Re: [PHP] Cron Jobs and php as apache module

2004-03-17 Thread Duncan Hill
On Wednesday 17 March 2004 11:03, Daryl Meese wrote: > Hello all, > > Ok, I run php as an apache module but need to have some php scripts called > from a cron. Since you can't have php installed as a cgi & apache module I > don't know how to do this. > > Any help would be appreciated. > > TIA > >

[PHP] Cron Jobs and php as apache module

2004-03-17 Thread Daryl Meese
Hello all, Ok, I run php as an apache module but need to have some php scripts called from a cron. Since you can't have php installed as a cgi & apache module I don't know how to do this. Any help would be appreciated. TIA Daryl Meese -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] cron problem

2004-01-26 Thread dread
On 26-Jan-2004 Mario wrote: > Hi all > > there is a bit of a problem with running cron scripts on our server > and i > would appreciate any help from the unix gurus. > The story: I have created a script in the cron dir that runs a php > file that > sends auto emails. (The script is working fine w

  1   2   >