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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to