Fw: [PHP] str_replace

From: Date: Sat, 15 Mar 2003 07:37:38 +0000
Subject: Fw: [PHP] str_replace
Groups: php.general 
Request: Send a blank email to php-general+get-139785@lists.php.net to get a copy of this message
----- Original Message ----- From: "Hugh Danaher" <hdanaher@earthlink.net> To: "Sebastian" <sebastian@dslr.net> Sent: Friday, March 14, 2003 11:37 PM Subject: Re: [PHP] str_replace > I just though up a better idea, > put your conditional statements in your included files not in the calling > file. That way, the parsing of the page will pick up the conditions and > execute them properly. > Really hope this helps. > Hugh > ----- Original Message ----- > From: "Sebastian" <sebastian@dslr.net> > To: "php list" <php-general@lists.php.net> > Sent: Friday, March 14, 2003 9:15 PM > Subject: [PHP] str_replace > > > > This may seem weird: > > > > How do I str_replace an include function? > > > > I want to replace this line: include("$header"); > > > > with nothing .. > > > > something like this: > > > > $footer = str_replace(" '. include("$header"); .' ", > > "", $footer); > > > > I get errors, any ideas? > > > > cheers, > > - Sebastian > > >

« previous php.general (#139785) next »