|
Posted by Rik Wasmus on 10/16/07 07:32
On Tue, 16 Oct 2007 03:49:05 +0200, duzhidian@gmail.com =
<duzhidian@gmail.com> wrote:
> Thanks for your guys info. All your suggestions is to use absolute
> path somewhere.
I gave you a perfectly serviceable solution.
1. Store current working dir somewhere ( $cwd =3D getcwd(); ).
2. Set current working dir to the one of the file =
( chdir(dirname(__FILE__)); ).
3. Do a relative include/require/fopen/etc..
4. Restore the current working dir to the one you stored ( chdir($cwd); =
).
-- =
Rik Wasmus
Navigation:
[Reply to this message]
|