try:
$aux = $replace->feedLinks();
$read = str_replace('
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
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
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
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
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
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
7 matches
Mail list logo