RE: [PHP-DEV] URGENT -- Include -- URGENT

From: Date: Thu, 12 Oct 2000 00:06:53 +0000
Subject: RE: [PHP-DEV] URGENT -- Include -- URGENT
Groups: php.dev 
Request: Send a blank email to php-dev+get-34724@lists.php.net to get a copy of this message
Well... That solves that I guess :) Samuel, I was going to suggest that perhaps your Windows server wasn't correctly resolving the DNS name/alias for your machine. This is quite common. Even though your client PC might be working, I've seen a few cases of the PHP server not having being added correctly to the DNS, and was going to suggest maybe you use the actual IP address. However, given Zeev's response... Is this a big task to change Zeev? We're wanting to setup a few different NT based PHP servers in the coming months and although we mostly use relative paths, the ability to use absolute URL based paths like this case will arise. MBP mikebp@alverstone.com.au -----Original Message----- From: Zeev Suraski [mailto:zeev@zend.com] Sent: Wednesday, 11 October 2000 4:04 PM To: Samuel Desramont; php-dev@lists.php.net Subject: Re: [PHP-DEV] URGENT -- Include -- URGENT URL includes do not work under Windows, currently. Zeev At 10:29 11/10/2000, Samuel Desramont wrote: >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 -- Zeev Suraski <zeev@zend.com> http://www.zend.com/ -- 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 (#34724) next »