You are here: Re: Get get include pages to work... « PHP Programming Language « IT news, forums, messages
Re: Get get include pages to work...

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация