Re: [PHP] vars in echoed file_get_contents string

2004-01-30 Thread John W. Holmes
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

[PHP] vars in echoed file_get_contents string

2004-01-30 Thread Shawn McKenzie
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:/