I have a constants.php file that defines the url of my site.
An example of the constants
<?php $url = "http://www.mysite.com" ?>
when I include this file and try to use it in another include, I am unable to pass any information in a variable.
Here is an example.
<?php include("../includes/constants.php"); $content = "hello world"; include("$url/test.php"); ?>
<?php echo "$content"; ?>
if I just use something like this.
include("../test.php");the content is echoed...?
Any suggestions as to why this is happening, or a way around it, would be great.