Re: URGENT -- Include -- URGENT

From: Date: Wed, 11 Oct 2000 09:07:59 +0000
Subject: Re: URGENT -- Include -- URGENT
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-34649@lists.php.net to get a copy of this message
I've copied your code (replacing local.mysite.com of course) in the three good files, but it still doesn't work !!!! It may come from the NT Server configuration :-( Thx for your help, -- 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 Mike Berry-Porter <Berry-PorterM@newcrest.com.au> a écrit dans le message : E79F4E11522BD2119A590000F87C21820194CB18@pent04.newcrest.com.au... Works fine for me... I've copied the code I used for all three files: ///////////////////////////////////////////////////////////////////// <?php /* Main file */ include "vars.php"; echo "URL = $url<BR>\n"; ?> Hello world <?php echo "URL = $url<BR>\n"; $inc=$url."/bottom.php"; echo "INC = $inc<BR>\n"; $my_text = "Hello"; include $inc; echo "My Text = $my_text<BR>\n"; ?> ///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// <?php /* The is the file VARS.PHP */ /* Replace the following URL with your real url */ $url = "http://local.mysite.com"; ?> ///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// <?php /* This is the file BOTTOM.PHP */ echo "Hit!!<BR>\n"; ?> ///////////////////////////////////////////////////////////////////// -----Original Message----- From: Samuel Desramont [mailto:sdesramont@pagenet.fr] Sent: Wednesday, 11 October 2000 4:41 PM To: Mike Berry-Porter Subject: Re: [PHP-DEV] URGENT -- Include -- URGENT In fact, it's : $inc=$url."/bottom.php"; but it doesn't work :-( 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 ----- Original Message ----- From: Mike Berry-Porter <Berry-PorterM@newcrest.com.au> To: 'Samuel Desramont' <sdesramont@pagenet.fr>; <php-dev@lists.php.net> Sent: Wednesday, October 11, 2000 8:41 AM Subject: RE: [PHP-DEV] URGENT -- Include -- URGENT Can you please confirm that the line: <?$inc=$url."/index/bottom.php"; ... is right? Surely it would then be looking for http://local.mysite.com/index/bottom.php , not http://local.mysite.com/bottom.php ? MBP mikebp@alverstone.com.au -----Original Message----- From: Samuel Desramont [mailto:sdesramont@pagenet.fr] Sent: Wednesday, 11 October 2000 4:29 PM To: php-dev@lists.php.net Subject: [PHP-DEV] URGENT -- Include -- URGENT 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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.dev (#34649) next »