The files that are evaled work perfectly without being evaled. I dont think eval was meant for large files etc.
Whats on that like: a preg_match that looks for \$variable = something; and thats the like it messes up on. Also, if the file which is evaled includes another file, the variables from the included file wont get parsed or anything, and the variables set to it by the first file, or the class dont work at all. "John Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Josh Acecool M wrote: > >>> var $The_Template_Sys; > >>> > >>>$this -> The_Template_Sys = file_get_contents("$The_Template_File"); > >>> > >>>$this -> Sub_Template = TRUE; > > Any ideas? > > I have an idea I said in a previous email! > > >>you say you're getting a parse error. How could anyone possibly help you > >>troubleshoot that parse error unless they had an example of what was in > >>the file being eval()'d?? > > What is actually in the file that's failing the eval()??!?!?! What line > of the file is failing? What is on that line? What's on the couple of > lines before it? What's on the couple of lines after that line that's > failing? What does the line with the eval() call look like? Are you > doing anything else with $this->The_Template_Sys before it's eval()'d?????? > > -- > > John Holmes > > php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php