Re: Using include() and URL's
| From: | Bogdan Stancescu | Date: | Fri, 18 Jan 2002 04:33:30 +0000 |
| Subject: | Re: Using include() and URL's | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81021@lists.php.net to get a copy of this message | ||
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