Re: [PHP] About File Paths [unresolved]

2004-10-29 Thread Nick Wilson
* and then Matthew Sims declared > > If a script is to be called with cron *outside* of the http directory, > > how should file system paths be handled? > > > > Should I use > > > > fopen('a_path/relative_to/thescript.php'); > > > > or > > > > fopen('/usr/var/www/absolute_file_path/thescript.p

Re: [PHP] About File Paths [unresolved]

2004-10-28 Thread Matthew Sims
> If a script is to be called with cron *outside* of the http directory, > how should file system paths be handled? > > Should I use > > fopen('a_path/relative_to/thescript.php'); > > or > > fopen('/usr/var/www/absolute_file_path/thescript.php'); > > Im not only using this for fopen. So does php wo

Re: [PHP] About File Paths [unresolved]

2004-10-28 Thread Nick Wilson
* and then Nick Wilson declared ***bumpety bump*** ;-) > If a script is to be called with cron *outside* of the http directory, > how should file system paths be handled? > > Should I use > > fopen('a_path/relative_to/thescript.php'); > > or > > fopen('/usr/var/www/absolute_file_path/the

Re: [PHP] About File Paths

2004-10-28 Thread Nick Wilson
* and then Greg Donald declared > On Thu, 28 Oct 2004 18:27:34 +0200, Nick Wilson <[EMAIL PROTECTED]> wrote: > > If a script is to be called with cron *outside* of the http directory, > > how should file system paths be handled? > > I always assume cron is dumb and provide it with full paths.

Re: [PHP] About File Paths

2004-10-28 Thread Greg Donald
On Thu, 28 Oct 2004 18:27:34 +0200, Nick Wilson <[EMAIL PROTECTED]> wrote: > If a script is to be called with cron *outside* of the http directory, > how should file system paths be handled? I always assume cron is dumb and provide it with full paths. -- Greg Donald Zend Certified Engineer http