Variables that work before the include file but not after....
| From: | Scott Fletcher | Date: | Wed, 23 Oct 2002 16:22:40 +0000 |
| Subject: | Variables that work before the include file but not after.... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-121122@lists.php.net to get a copy of this message | ||
Hi Everyone!
I'm a little baffled. When I assigned the data to the variable and echo
it, it showed the data. Then I continue on to the include file, so inside
that file, when I echo the variable, it showed a blank. Why is that?
--clip--
$test = "Testing!!!!";
echo $test;
include('file1.php');
--clip--
--clip-- (file1.php)
echo $test;
--clip--