Everytime I change the include to the full url path "http://www.domain.com/directory/page.php" it wont work, why not? Do I need to make this a global variable or something?
I am trying to have 10 sites pull the same data so I want to include a variable from 1 site to 10. Think of a on/off switch. If I just leave it as "page.php" it works. However, when I change to the full url path it does not work and it has to be the full url because its not on the same domain name.
page.php
$status = 1;
Here is the code I put on top of my page:
include("page.php");
echo $status;
if ($status == 1) {
echo "off";
}else{
echo "on";
}