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 >
This is expected. We know that include() won't work for your situation. Please respond to my previous e-mail if you want more help. > "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > > * 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, add an element, then turning it back > > to html. > > > > To get around your \$ problem.. > > see http://php.net/preg_quote > > > > > > Curt > > -- > > First, let me assure you that this is not one of those shady pyramid > schemes > > you've been hearing about. No, sir. Our model is the trapezoid! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php