Re: [PHP] crontab, PHP and MACOSX

2007-04-04 Thread Yvan Strahm
On 3/28/07, Chris [EMAIL PROTECTED] wrote: There is a lot of require_once(' ') in the script and if i am not in the correct folder the script won't work. That is something php related ;) Change your require to something like this: require(dirname(__FILE__) . '/other_file_name.php'); --

[PHP] crontab, PHP and MACOSX

2007-03-28 Thread Yvan
Hello all, I don't know if it's the correct list, but as a php script is involved I try to start a set up a crontab job with crontab -e, which should start a php script: */10* * * * cd /Users/yvan/Sites/est-pac/ ; /usr/bin/php

Re: [PHP] crontab, PHP and MACOSX

2007-03-28 Thread Myron Turner
Yvan wrote: Hello all, I don't know if it's the correct list, but as a php script is involved I try to start a set up a crontab job with crontab -e, which should start a php script: */10* * * * cd /Users/yvan/Sites/est-pac/ ; /usr/bin/php

Re: [PHP] crontab, PHP and MACOSX

2007-03-28 Thread Chris
Yvan wrote: Hello all, I don't know if it's the correct list, but as a php script is involved Nope, not the right list. Cron isn't running - which has absolutely nothing to do with php. I try to start a set up a crontab job with crontab -e, which should start a php script: */10*

Re: [PHP] crontab, PHP and MACOSX

2007-03-28 Thread Yvan
: Wednesday, March 28, 2007 03:55:09 PM -0700 From: Yvan [EMAIL PROTECTED] To: php-general@lists.php.net Cc: Subject: [PHP] crontab, PHP and MACOSX Hello all, I don't know if it's the correct list, but as a php script is involved I try to start a set up a crontab job

Re: [PHP] crontab, PHP and MACOSX

2007-03-28 Thread Yvan
On March 28, 2007, Chris wrote: Yvan wrote: Hello all, I don't know if it's the correct list, but as a php script is involved Nope, not the right list. Cron isn't running - which has absolutely nothing to do with php. I try to start a set up a crontab job with crontab -e,

Re: [PHP] crontab, PHP and MACOSX

2007-03-28 Thread Chris
Shell command as cron jobs work and errors are also send to the local mail, but php scripts are not executed Does running the command manually work? If not, there's your problem. If it does, then it's a cron issue. Still something you should ask about on a mac mailing list. -- Postgresql

Re: [PHP] crontab, PHP and MACOSX

2007-03-28 Thread Chris
There is a lot of require_once(' ') in the script and if i am not in the correct folder the script won't work. That is something php related ;) Change your require to something like this: require(dirname(__FILE__) . '/other_file_name.php'); -- Postgresql php tutorials