Re: The Include Eludes
| From: | Joseph H Blythe | Date: | Mon, 27 Nov 2000 06:01:12 +0000 |
| Subject: | Re: The Include Eludes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27311@lists.php.net to get a copy of this message | ||
Lawrence.Sheed@dfait-maeci.gc.ca wrote:
>
> Have you tried using $DOCUMENT_ROOT to get the root directory of your web
> pages.
>
> eg
>
> if your files are in
>
> /inc/somefile.php (from a web browser), then the php could be:
>
> include $DOCUMENT_ROOT . "inc/somefile.php";
>
> I use that quite often for my require/includes.
>
> I can give you some help if you need it.
>
> Cheers,
>
> Lawrence.
>
I need to be able to use the includes from user directories as this is
how I develop the websites, I generally don't use the webservers
document root as I can not easily ftp files straight to it as it is
user:group nobody and I am writing the scripts from a windows box, which
would mean I would have to ftp the files to a users home dir then su to
root and move the files into the webservers document tree, which is a
real pain.
Geez its time to knock off, I'll try and sort this out tommorrow as I
really need to understand why this isn't working.
Thanks for your help, mutch appreciated :-)
Regards,
Joseph