Re: Eval a file, and it gives parse error because it uses a preg_match statement with \$

From: Date: Tue, 03 Aug 2004 19:31:59 +0000
Subject: Re: Eval a file, and it gives parse error because it uses a preg_match statement with \$
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-192599@lists.php.net to get a copy of this message
Also, variables do not get passed correctly from the engine to the evaluated pages. "Josh Acecool M" <webmaster@acecoolco.com> wrote in message news:20040803191106.70146.qmail@pb1.pair.com... > It has a preg_match in there that looks for \$variable = blah; > > I cant help that a file works without Eval, and then to eval it, it messes > it up... > > "John Holmes" <holmes072000@charter.net> wrote in message > news:410FD249.9010004@charter.net... > > Josh Acecool M wrote: > > > var $The_Template_Sys; > > > > > > $this -> The_Template_Sys = file_get_contents("$The_Template_File"); > > > > > > $this -> Sub_Template = TRUE; > > > > Please respond to the list and not me personally. > > > > 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?? > > > > -- > > > > John Holmes > > > > php|architect - The magazine for PHP professionals - > http://www.phparch.com

« previous php.general (#192599) next »