Remote cookie includes
| From: | Dean Householder | Date: | Tue, 22 Oct 2002 21:26:20 +0000 |
| Subject: | Remote cookie includes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-120984@lists.php.net to get a copy of this message | ||
Does anyone know how to call a remote include AND have the include execute
remotely. My problem is that with three different methods of includes they
all return the php code and execute it locally.
I have two domains and I want to write a cookie on 1 then "check it" from 2.
The method is to include a script from the first domain and return a
variable if it's set.
They all load but fail to find the cookie because they are executing it from
2.
<?
$file = "http://www.mydomain.com/script.php";
// Attempt 1
include $file;
// Attempt 2
print join('',file($file));
// Attempt 3
$fp = fopen($file,'r');
print fread( $fp, 99999999 );
fclose($fp);
?>
Does anyone know if this is possible?
Thanks SOO much!
Dean