note 21119 added to function.eval

From: Date: Mon, 29 Apr 2002 23:09:03 +0000
Subject: note 21119 added to function.eval
Groups: php.notes 
Request: Send a blank email to php-notes+get-29996@lists.php.net to get a copy of this message
Parsing HTML is the only way to go on larger projects. for several reasons... IE: I'm at 60k lines of php code :) for this to work I just resolve the vars that I place in the HTML/Template file in the preceding php code. then I: //***** This is the template parsing algo ******** $file = "HTML_template.tmp"; $fd = fopen ($file,"r"); $buffer = fread($fd,filesize($file)); fclose ($fd); $buffer = str_replace('"',"'",$buffer); eval("\$content = \"$buffer\";"); $affsignup = $content; ////////////////////////////////////////////// -- http://www.php.net/manual/en/function.eval.php http://master.php.net/manage/user-notes.php?action=edit+21119 http://master.php.net/manage/user-notes.php?action=delete+21119 http://master.php.net/manage/user-notes.php?action=reject+21119

« previous php.notes (#29996) next »