Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-06 Thread Josh Acecool M
I dont have magic_quotes etc on, so when I use file_get_contents the EXACT, yes, EXACT file gets placed. Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Josh Acecool M: You dont understan.. Not anymore. Honestly I haven't had a clue what was going on till

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-06 Thread Justin Patrin
On Fri, 6 Aug 2004 11:20:38 -0700, Josh Acecool M [EMAIL PROTECTED] wrote: I dont have magic_quotes etc on, so when I use file_get_contents the EXACT, yes, EXACT file gets placed. 1) This is not a response to the e-mail you're responding to. I see nothing about magic quotes in Curt's e-mail. 2)

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Josh Acecool M
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

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Justin Patrin
On Thu, 5 Aug 2004 09:51:10 -0700, Josh Acecool M [EMAIL PROTECTED] wrote: 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

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Josh Acecool M
5.0.0 Include WORKS, but using INCLUDE with PREG_REPLACE does NOT work, the text you want to replace gets deleted and the INCLUDE includes on the top of the page... Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Thu, 5 Aug 2004 09:51:10 -0700, Josh Acecool M [EMAIL

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Justin Patrin
On Thu, 5 Aug 2004 21:42:58 -0700, Josh Acecool M [EMAIL PROTECTED] wrote: 5.0.0 Include WORKS, but using INCLUDE with PREG_REPLACE does NOT work, the text you want to replace gets deleted and the INCLUDE includes on the top of the page... You're not making senseyou're saying that using

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Josh Acecool M
IF I do this: $text = file_get_contents('templateFile.php'); $text = preg_replace('/something/', include(something.php), $text); then it gets put ON TOP of the file, not where something is... see what I am saying? but, I am doing this. $text = file_get_contents('templateFile.php'); $text =

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Justin Patrin
On Thu, 5 Aug 2004 22:32:54 -0700, Josh Acecool M [EMAIL PROTECTED] wrote: IF I do this: $text = file_get_contents('templateFile.php'); $text = preg_replace('/something/', include(something.php), $text); then it gets put ON TOP of the file, not where something is... see what I am saying?

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Curt Zirzow
* Thus wrote Josh Acecool M: but, I am doing this. $text = file_get_contents('templateFile.php'); $text = preg_replace('/something/', file_get_contents(something.php), $text); eval(? . $text . ?) This is rather an odd thing to do, kinda like taking an html document converting it to xml,

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Josh Acecool M
You dont understan.. Say the template is: Blah {CONTENT} adasdasd I want to preg_replace(/{CONTENT}/, include(blah.php), $text); blah.php contains Hello! This is what appears Hello! Blah adasdasd Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Josh

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread John Holmes
Josh Acecool M wrote: You dont understan.. Say the template is: Blah {CONTENT} adasdasd I want to preg_replace(/{CONTENT}/, include(blah.php), $text); blah.php contains Hello! This is what appears Hello! Blah adasdasd That's exactly what's supposed to happen. PHP encounters your preg_replace

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Justin Patrin
On Fri, 6 Aug 2004 04:24:25 -0700, Josh Acecool M [EMAIL PROTECTED] wrote: You dont understan.. Say the template is: Blah {CONTENT} adasdasd I want to preg_replace(/{CONTENT}/, include(blah.php), $text); blah.php contains Hello! This is what appears Hello! Blah adasdasd

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Curt Zirzow
* Thus wrote Josh Acecool M: You dont understan.. Not anymore. Honestly I haven't had a clue what was going on till Justin pushed you into the right direction. Say the template is: Blah {CONTENT} adasdasd I want to preg_replace(/{CONTENT}/, include(blah.php), $text); the example I

[PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-04 Thread Josh Acecool M
Any ideas? 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; Please respond to the list and not me personally. you say

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-04 Thread John Holmes
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

[PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-03 Thread John Holmes
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

[PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-03 Thread Josh Acecool M
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 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Josh Acecool M wrote: var $The_Template_Sys; $this - The_Template_Sys

[PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-03 Thread Josh Acecool M
Also, variables do not get passed correctly from the engine to the evaluated pages. Josh Acecool M [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-03 Thread Justin Patrin
On Tue, 3 Aug 2004 12:11:02 -0700, Josh Acecool M [EMAIL PROTECTED] wrote: 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... And why again are you using *eval* on a file? Why not

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-03 Thread Josh Acecool M
Globals are off, Magic_quotes are off The file is the same I cant use include with a preg_replace (I replace X with file_get_contents blah because if I dont then the file thats included wont be included in place of the replaced variable, it will be included on the top of the page and not where its

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-03 Thread Josh Acecool M
Another note: I code for globals off. Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 3 Aug 2004 12:11:02 -0700, Josh Acecool M [EMAIL PROTECTED] wrote: It has a preg_match in there that looks for \$variable = blah; I cant help that a file works without