Re: install error?..bug??
| From: | Jason Wong | Date: | Thu, 17 Oct 2002 19:14:54 +0000 |
| Subject: | Re: install error?..bug?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120383@lists.php.net to get a copy of this message | ||
On Friday 18 October 2002 02:32, Howard Gillison wrote:
> and that works. that would tell me that my application is losing "context"
> of it's location (working directory) as it is running. the original code
> says:
> "./file.name"
> and that file.name file is sitting in the SAME directory where the PHP
> script is running.
I tested on the CGI/CLI version of php using relative paths (and even no
path), and also using Apache + php module and it works in both. So maybe it's
your webserver?
> So, with that information, is there some nifty setting in the php.ini file
> or soemthing that I can do so that Iplanet server doesn't lose the context
> (or PHP doesn't lose the context) of hte working directory??
> hints??
You can try using $_SERVER['DOCUMENT_ROOT'] which should (if set by your
webserver) give the full system path of wherever the script is residing.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
It's amazing how many people you could be friends with if only they'd
make the first approach.
*/