|
Posted by Schraalhans Keukenmeester on 05/17/07 18:56
At Thu, 17 May 2007 11:37:35 -0700, dpinion@gmail.com let his monkeys
type:
> Greetings,
> I have the following:
>
> require_once($_SERVER["DOCUMENT_ROOT"]."/virtuals/doc-root.php4");
>
> I also have several more include and include once that pull various
> sections into my main page. I am trying to get this working on a local
> machine for testing purposes. I have (windwos) Apache and PHP set up
> on my machine and have written several test pages to confirm things
> are working. When I perform an echo of the Document_root and
> global_root I get the following:
>
> server doc root: C:/Dewaynewww/TrentonWeb/Apache2/htdocs
> global doc root:
>
> Anyone have any ideas why I can't using my include/required documents?
>
> TIA for any help
I'm not sure about / being valid on windoze. If not, use \\ instead
(easape the \), or use single quotes.
It might be a safe mode restriction, or an open_basedir setting keeping
you from succesfully including.
You should check what errors you get:
start your script with:
error_reporting (E_ALL);
ini_set("display_errors","1");
and see what errors are displayed.
HTH
Sh.
[Back to original message]
|