I'm having trouble getting an include file to return any data. file.php (code below) calls mysql_info.php and should cause "Test Data" to be echoed, but isn't. The file is definitely being included, as the ...file has been included.. message is appearing. I've tried with and without the option of 'return $var' but still no luck.
Any ideas would be greatly appreciated.
file.php:
<?php
include ("http://nowhere.com/mysql_info.php");
echo "\$var: $var<br>";
?>
mysql_info.php:
<?php
echo "File has been included<br>";
$var = "Test Data";
return $var;
?>