[FX.php List] A question about path when running cron jobs
david weiner
1265 at lucerneblvd.org
Wed Sep 28 16:46:28 MDT 2011
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:
>
> include('../../Connections/connections.php');
>
> I'm thinking that the context of the script is not the same when run in the two different environments.
>
> Anyone know?
>
> jonathan
>
> --
> Jonathan Schwartz
> Exit 445 Group
> jonathan at exit445.com
> http://www.exit445.com
> 415-370-5011
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list