I'm having a brain fart here:
---file.php
$myvar = Hello!;
$stuff = file_get_contents(file.html);
echo $stuff;
---file.html
b$myvar/b
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:
Shawn McKenzie wrote:
I'm having a brain fart here:
---file.php
$myvar = Hello!;
$stuff = file_get_contents(file.html);
echo $stuff;
---file.html
b$myvar/b
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.
2 matches
Mail list logo