eval(...) not printing on browser, but assigning to a variable

From: Date: Sat, 24 Jun 2000 03:27:52 +0000
Subject: eval(...) not printing on browser, but assigning to a variable
Groups: php.general 
Request: Send a blank email to php-general+get-2885@lists.php.net to get a copy of this message
Dear all, -- test.inc (1 line file)-- <?echo "HELLO";?> -- -- test.php (1 line file)-- $fcontent=file("test.inc"); while ( list($line_num,$line) = each($fcontent) ) { $msg .= $line; } eval("?>$html_msg"); -- It echos "HELLO" on test.php. However, I do not want the string "HELLO" printing on test.php, I want it assigned to avariable instead, so I can use it for other purpose. How do I accomplish that? Thanks. Regards, vBoy

« previous php.general (#2885) next »