Re: include statement errors -- something missing
| From: | Chris Knipe | Date: | Mon, 17 Jun 2002 19:33:00 +0000 |
| Subject: | Re: include statement errors -- something missing | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102577@lists.php.net to get a copy of this message | ||
I don't think you can use include like that....
Have a look at fopen though, I'm not 100% sure that is going to help, but I
know fopen opens files on remote sites, include only does local.
----- Original Message -----
From: "Doug DeVries" <m.devries@attbi.com>
To: "Php-General (E-mail)" <php-general@lists.php.net>
Sent: Monday, June 17, 2002 9:27 PM
Subject: [PHP] include statement errors -- something missing
> Help ... please. ...
>
> From the page www.solomonsporch.org/test.php I get the following error.
>
> Warning: Failed opening
>
> 'http://www.gospelcom.net/mnn/includes/pubNewsTease.php?li=yes&limit
> =4'
for
> inclusion (include_path='c:\php4\pear') in e:\solomonsporch.org\test.php
on
> line 10
>
> The page HTML is as follows:
>
> <html>
> <head>
> </head>
> <body>
> test area should show 4 lines of news
>
>
> <?php
>
include("http://www.gospelcom.net/mnn/includes/pubNewsTease.php?li=yes&limit
> =4");
> ?>
>
>
> </body>
>
> </html>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>