[FX.php List] A question about path when running cron jobs
jschwartz at exit445.com
Wed Sep 28 17:04:48 MDT 2011
OK. That answers that question. Thanks.
Now, what is the best way to do this if my goal is to have
transportable code with a single definition? To be honest, path
statements are not my strength. In this particular case, the target
folder (connections) is located outside of and at the same level of
the web root.
At 3:46 PM -0700 9/28/11, david weiner wrote:
>Yes, you need to specify the full path for the cron version.
>On Sep 28, 2011, at 3:08 PM, Jonathan Schwartz wrote:
>> Hi folks,
>> I am having trouble with paths when running php scripts using Cron
>>in OS X server environment.
>> The scripts run fine if/when launched in development mode from a
>>web browser. However, when run from Cron, the script can not find
>>files included with relative paths. For example:
>> I'm thinking that the context of the script is not the same when
>>run in the two different environments.
>> Anyone know?
>> Jonathan Schwartz
>> Exit 445 Group
>> jonathan at exit445.com
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>FX.php_List mailing list
>FX.php_List at mail.iviking.org
Exit 445 Group
jonathan at exit445.com
More information about the FX.php_List