Re: PHP CLI Problem

From: Date: Wed, 06 Feb 2008 23:56:27 +0000
Subject: Re: PHP CLI Problem
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-268820@lists.php.net to get a copy of this message
    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. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#268820) next »