Re: Getting http:// include to return?
| From: | Sqlcoders.com Programming Dept | Date: | Fri, 07 Jun 2002 13:17:16 +0000 |
| Subject: | Re: Getting http:// include to return? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101070@lists.php.net to get a copy of this message | ||
It's not exactly what you wanted, but try this:
<?
echo HTTPReturnTest();
function HTTPReturnTest(){
$intFileHandle = fopen("http://www.hysp.net","r");
while (!feof ($intFileHandle)) {
$intFileOutput .= fgets($intFileHandle, 4096);
}
fclose($intFileHandle);
return $intFileOutput;
}
?>
HTH,
Dw.
Sqlcoders.com Dynamic data driven web solutions
----- Original Message -----
From: "Leif K-Brooks" <eurleif@buyer-brokerage.com>
To: <php-general@lists.php.net>
Sent: June 06 2002 08:08 PM
Subject: [PHP] Getting http:// include to return?
> I'm trying to make a script that people using PHP can get information
> from my site from by including it. They would do something like:
> $var =
>
> include("http://mydomain.com/infoscript.php?infotoget=info1");
> //returns
> "This is info 1."
> Is there anything I can do in my script to make return() work even
> though they're not loading it locally?
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>