RE: [PHP-WIN] "/" path under include() function.

From: Date: Wed, 22 Nov 2000 23:32:02 +0000
Subject: RE: [PHP-WIN] "/" path under include() function.
Groups: php.windows 
Request: Send a blank email to php-windows+get-4063@lists.php.net to get a copy of this message
Gents, If you want it to work anywhere in your document tree: <? include("$GLOBALS['DOCUMENT_ROOT']/includes/header.htm"); ?> wheeeeeeeeeeeee! cheers Ben -----Original Message----- From: Pablo Vera [mailto:pvz@vercan.com] Sent: Wednesday, November 22, 2000 15:29 To: php-windows@lists.php.net Subject: Re: [PHP-WIN] "/" path under include() function. Mykone: Try this: <? include("../includes/header.htm"); ?> Saludos, Pablo Vera _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Wednesday, November 22, 2000, 6:53:06 PM, Mykone wrote: MCS> I am using PHP4 on IIS5.0 MCS> I need to include a file called header.htm in MCS> <webroot>/includes/header.htm MCS> from MCS> <webroot>references/index.html MCS> when i do <?include("/includes/header.htm")?> it doesn't work, why can't I MCS> use the "/" directive in the include() function? MCS> Thanks in advance. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#4063) next »