Re: [PHP] Re: str_replace an include

2003-01-21 Thread Fernando Lemes
try: $aux = $replace->feedLinks(); $read = str_replace('

Re: [PHP] Re: str_replace an include

2003-01-21 Thread jesse
ns (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: jesse [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 22 January 2003 2:12 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: str_replace an include Timothy Hitchens ) wrote: Where are you getting $read fr

RE: [PHP] Re: str_replace an include

2003-01-21 Thread Timothy Hitchens \(HiTCHO\)
3 2:12 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Re: str_replace an include > > > > > Timothy Hitchens ) wrote: > > Where are you getting $read from?? > > > > That should be $replace = new mainReplace(); // notice the brackets > > $read is the co

Re: [PHP] Re: str_replace an include

2003-01-21 Thread jesse
ssage;) Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: jesse [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 22 January 2003 1:38 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: str_replace an include Thanks a lot, I think that

RE: [PHP] Re: str_replace an include

2003-01-21 Thread Timothy Hitchens \(HiTCHO\)
3 1:38 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: str_replace an include > > > Thanks a lot, I think that will be the trick, but I'm still > having a bit > of a problem. > > Here's my scenario: > > class mainReplace{ > > function fee

[PHP] Re: str_replace an include

2003-01-21 Thread jesse
Thanks a lot, I think that will be the trick, but I'm still having a bit of a problem. Here's my scenario: class mainReplace{ function feedLinks(){ ob_start(); include('links.php'); $file = ob_get_contents(); ob_end_clean(); return $file; } } $replace = new

[PHP] Re: str_replace an include

2003-01-21 Thread J Smith
I'd recommend looking at the output buffering functions. Something like this would probably work... ob_start(); include("links.php"); $file = ob_get_contents(); ob_end_clean(); The result of parsing and executing links.php will be in $file. Do with it what you will. J Jesse wrote: > Hello