Re: Remote cookie includes
| From: | Leif K-Brooks | Date: | Tue, 22 Oct 2002 22:06:02 +0000 |
| Subject: | Re: Remote cookie includes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120991@lists.php.net to get a copy of this message | ||
They are executing remotely, but the browser doesn't know that. All includes and other php code happens before the browser sees anything, so it still doesn't give the remote file the cookie. You'll have to do it some other way.
Dean Householder wrote:
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-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.