Re: About File Paths [unresolved]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* 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.php');
> >
> > Im not only using this for fopen. So does php work relative to the
> > script being called or not?
> >
> > Much thanks...
> > --
> > Nick W
> 
> When in doubt, use absolute.

Fair enough, thanks Matthew..
-- 
Nick W

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux