Re: require() in other directories?
| From: | Jason Wong | Date: | Thu, 18 Nov 2004 12:04:23 +0000 |
| Subject: | Re: require() in other directories? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202408@lists.php.net to get a copy of this message | ||
On Thursday 18 November 2004 19:45, Peter Lauri wrote:
Please do not top post.
> But if I am working on a webserver it would try to find it in the root of
> my webserver, or am I wrong?
>
> For example I use that notation with an image:
> I use this: <img src='/image/theimage.gif'>
That is your 'webroot'.
> Is this not the case for the PHP-scripting?
No, $_SERVER['DOCUMENT_ROOT'] is what you need to prepend in front
directories. BTW using relative paths for include should work.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Television -- the longest amateur night in history.
-- Robert Carson
*/