Hi,
I've been experiencing some strange problems handling a url generated variable with an included file. Here's what it all comes down to:
index.php:
<?php
include "content.php";
?>
content.php:
<?php
print $variable;
?>
So if I call "http://www.website.com/index.php?variable=foo", the page returned will print out "foo"
However! If in index.php I use the full path for the include:
<?php
include "http://www.website.com/content.php";
?>
The same URL will not get the returned page to print out the variable's value! Why is this? Does it have something to do with configuration?
If this was all there is to my problem, I would simply avoid using the full path, but for some reason, in the actual code I'm using, the main function of my "content.php" page will only work if I use a full path for the include function. I hope this might provide a clue...
Can anyone help? Is this clear?
Thanks in advance.