Re: PHP CLI Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 6, 2008 6:56 PM, Chris <dmagick@xxxxxxxxx> wrote:
>
> >     In your cronjob, replace the php5 entry with the following
> > (including the backticks):
> >         `which php5`
> >
> >     If that still doesn't work, replace it simply with php, not php5:
> >         `which php`
>
> You can use 'env php' instead and it'll pick up the first one in $PATH
> (same sort of idea as 'which' though).
>
> So the job would be:
>
> env php -f /path/to/file.php
>
> Also while the curl suggestion may work, it's going to (eventually) have
> timeout issues and stop working if the backup's become too large.

    Unless then you employ ignore_user_abort(1); et al.

-- 
</Dan>

Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux