I am trying to get the value of a variable from one domain to another using php include , but it is not working.
firstdomain.com/test1.php
<?php
$i=10;
?>
seconddomain.com/test2.php
<?php
include_once "firstdomain.com/test1.php";
echo $i;
?>
I have enabled allow_url_include
, so I can now include the firstdomain.com/test1.php file to seconddomain.com/test2.php, but how do I get the value of $i
?