note 21119 deleted from function.eval by nlopess

From: Date: Mon, 17 May 2004 18:56:21 +0000
Subject: note 21119 deleted from function.eval by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-69735@lists.php.net to get a copy of this message
Note Submitter: Richardc@affiliatetrends.com ---- 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; //////////////////////////////////////////////

« previous php.notes (#69735) next »