Re: Using include() and URL's

From: Date: Fri, 18 Jan 2002 05:41:50 +0000
Subject: Re: Using include() and URL's
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-81033@lists.php.net to get a copy of this message
> In regards to 1, neither of them are. they're just examples I was testing. > > As for your second note, it need only include the page, it needs only to > display the page. It works fine with local references, just not with URL's. > You can't use URL includes on the windows systems, only unix. -Sterling > At 06:33 AM 1/18/02 +0200, you wrote: > >A couple of comments: > >1. Your include() statement specifies a different file than your error > >message - which one is right? > >2. From what I recall (but I'm not positive), using a protocol type at the > >beginning of the location ("http://") means that > >your server will actually > >use that (i.e. parse it -- it'll include whatever you see when you're using > >a browser on the respective location) rather than include the source file. > >Is that wht you want? > > > >Just my 2c. > > > >Bogdan > > > >Hippie wrote: > > > >> I have a simple command similar to this. > >> > >> include > >> ("http://www.cci.net.au/default.htm"); > >> > >> When it parses the php file it is contained in though I get the > >> following response. > >> > >> Warning: Failed opening > >> 'http://flurry.cci.net.au/template/index.php' > >> for inclusion (include_path='') in > >> C:\Inetpub\wwwroot\template\index.php on line 61 > >> > >> I checked that I hard url_fopen_wrappers enabled within the php.ini > >> file which it was and other than that have been unable to deduce why > >> this isn't working. > >> > >> Any comments would be much appreciated. > >> > >> Hippie. > >> > >> -- > >> PHP General Mailing List (http://www.php.net/) > >> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > >> For additional commands, e-mail: php-general-help@lists.php.net > >> To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > >For additional commands, e-mail: php-general-help@lists.php.net > >To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#81033) next »