RE: path under include() function
| From: | Mitesh Patel | Date: | Thu, 23 Nov 2000 04:58:50 +0000 |
| Subject: | RE: path under include() function | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-4068@lists.php.net to get a copy of this message | ||
Mykone:
Try this way
You can do this in three different ways
<?php include("$GLOBALS[DOCUMENT_ROOT]/includes/header.htm"); ?>
remove single quote from global variable
another way is that write down the full path of your include file
<?php include("c:/inetpub/wwwroot/includes/header.htm"); ?>
if c:/inetpub/wwwroot is your webroot
another way is
include("../includes/header.htm");
----- Original Message -----
From: Mykone C. Saunders <mykone@home.com>
To: <php-windows@lists.php.net>
Sent: Thursday, November 23, 2000 11:07 AM
Subject: Re: [PHP-WIN] "/" path under include() function.
> Sorry Benji doesn't work. I get error message:
>
> Parse error: parse error, expecting
T_STRING' or
> T_VARIABLE' or
> `T_NUM_STRING' in d:\websites\inetccon.com\references\index.php on line 8
>
>
>
>
> --
> 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
>
>
php