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
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)
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
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
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
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
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 =
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?
* 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,
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
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
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
* 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
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
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
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
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
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
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
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
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
21 matches
Mail list logo