Hi all, I am trying to figure out how to include variables/functions from an external file, but so far things are not working the way the manual says they should. Here is what I've done, any help is really appreciated:
The file at /public_html/functext.php
<?php
$color = 'green';
$fruit = 'apple';
?>
The file at /public_html/feedback.php
<?php
echo "A $color $fruit"; // A
include 'http://www.mretc.net/functest.php';
echo "A $color $fruit"; // A green apple
?>
when parsed, feedback.php produces "A A"; it should be "A A green apple" (unless I am mistaken).
What is wrong? Thanks,
<>< Chris ><>