Re: absolute include files
| From: | DvDmanDT | Date: | Sat, 14 Jun 2003 19:37:55 +0000 |
| Subject: | Re: absolute include files | ||
| References: | 1 2 3 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-20318@lists.php.net to get a copy of this message | ||
Oh, I think you have the register_globals problem... Search the manual for
'register_globals' for more info...
"Dj Dust" <djdust@ntlworld.com> skrev i meddelandet
news:000801c33279$abd88030$782f6851@dustrj5f35bjm2...
> hiya
>
> I've been tearing my hair out for 2 days now trying to get this to work
and
> I'm sure the answer has gotta be pretty simple...
>
> I'm using PHP for the first time and have got some pages uploaded to my
live
> site and they work like a dream - the problem is that they won't work
> locally using PHPdev.
>
> Every page on site uses the following include code on every page:
>
> <?php
> include($DOCUMENT_ROOT . "/include/header.htm");
> ?>
>
> the theory is that no matter where you are in the site hierarchy (there's
a
> lot of directories within directories) it should still work.
>
> Like I said, it DOES work fine when I upload the pages to my ISP but only
> the top level files of the site work locally. If you go down into
> sub-directories I get the following error:
>
> "Warning: Failed opening '/include/header.htm' for inclusion
> (include_path='.;C:/phpdev/php/includes;C:/phpdev/php/class') in
> c:\phpdev\www\curve-online.co.uk\discography\official.php on line 12"
>
> Any idea how I can get my local server working the same as my ISP server?
>
> cheers
>
> daz
>
>