Re: I'm prepared to feel like an idiot... But I just simply need the answer :)
| From: | Jason Pruim | Date: | Wed, 01 Aug 2007 12:59:40 +0000 |
| Subject: | Re: I'm prepared to feel like an idiot... But I just simply need the answer :) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-259987@lists.php.net to get a copy of this message | ||
On Aug 1, 2007, at 8:55 AM, Brad Bonkoski wrote:
I would start with suppling the entire path of for php in the cron. The path in the cron environment may be vastly different then the path in your shell environment... so: /path/to/php file.php See how that works for you, of course I am assuming it runs fine from your command line... -BActually I haven't gotten to the point of setting it up on the cron, I can't get it to run the php script from the cli.. thought I should test that first :) Once that works I'll add it to the cron :)
Jason Pruim wrote:-- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com japruim@raoset.comHi All :) I have a php script that I am attempting to run from the CLI to connect to a MySQL database and update a field. but when I run it with this command: php cronjob.php it prints out the script on screen but doesn't process it... Running: php-r"phpinfo();" prints out the standard phpinfo screen.. and I don't think I should have to write it differently to make it run from the command line right? HELP! I'm desperate... I would offer to name my first born after you... But he's already been born :) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com japruim@raoset.com--PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php