URGENT -- Include -- URGENT
| From: | Samuel Desramont | Date: | Wed, 11 Oct 2000 08:29:03 +0000 |
| Subject: | URGENT -- Include -- URGENT | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34639@lists.php.net to get a copy of this message | ||
Hi,
I've got a file which is named "vars.php". This file contains the following
code :
<?$url="http://local.mysite.com";?>
I want to include a file which is named "bottom.php" in another file named
"index.php" which contains the following code :
<?include "vars.php";?>
....
....
....
<?$inc=$url."/index/bottom.php";
include "$inc";?>
BUT, it doesn't work => the error given is :
Warning: Failed opening 'http://local.mysite.com/bottom.php' for
inclusion
in D:\InetPub\wwwroot\mysite\index.php on line 249
How possible ??? http://local.mysite.com/bottom.php
is the right file !!!!
Please, HELP
Many thanks in advance,
Samuel Desramont
PageMédia
ZI du château - rue Albert Einstein
BP 17 - 62220 Carvin
Tel: +33 (0)3 21 08 91 91 Fax: +33 (0)3 21 08 91 92
E-mail: desramont@pagemedia.fr