Hi,
I have a situation where I need to access a variable defined in a php file from a different php file where I include the firts php file using full web URL.

The code is something like this:

PHP Code:
<?php 
error_reporting
(0); 
include 
"http://mydomain.com/myphpfile.php"
?>
<?
echo $TheVariableINeed;
?>
In this, $TheVariableINeed is the variable that I define in the http://mydomain.com/myphpfile.php";

If I include the http://mydomain.com/myphpfile.php"; as just
include myphpfile.php;

..it works but if I include it as a URL it does't access the TheVariableINeed.

How can I do that? Any help is appreciated!

Thanks,