Shawn McKenzie wrote:
I'm having a brain fart here:
---file.php
$myvar = "Hello!";
$stuff = file_get_contents("file.html");
echo $stuff;
---file.html
$myvar
Any ideas why when $stuff is echoed I get $myvar and not Hello?
It's because you're echoing the contents of a variable, not evaluating
it. W
I'm having a brain fart here:
---file.php
$myvar = "Hello!";
$stuff = file_get_contents("file.html");
echo $stuff;
---file.html
$myvar
Any ideas why when $stuff is echoed I get $myvar and not Hello?
Thanks!
-Shawn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
2 matches
Mail list logo