|
Posted by d43m0n AT shaw DOT ca on 08/06/06 07:19
J.O. Aho wrote:
> Luka M. wrote:
> > "J.O. Aho" <user@example.net> wrote in message
> > news:4jf16iF7omndU1@individual.net...
> >> Luka M. wrote:
> >>> Can anyone tell me why, if PHP reads from a file and puts it in a
> > string,
> >>> the string is not the same as the file. Not just that, but it seems that
> > if
> >>> I use str_replace on it, it doesen't quite work! Why could that be?
> >> Are you using the str_replace() the right way?
> >>
> >> $filestring = str_replace("search","replace",$filestring);
> >> http://www.php.net/manual/en/function.str-replace.php
> >>
> >> If you think it looks different on the webpage, then it's for HTML don't
> > care
> >> about new lines and multiple white spaces.
>
> > Yes I do.
> > I tell you something's wrong with PHP!
>
> What about showing the source you are using, it's easier to see if you do
> something wrong there that way, otherwise recompile php.
>
>
> //Aho
It's sad, they always blame it on someone else... do us all a favour,
RTFM. And then come back with a question...
Navigation:
[Reply to this message]
|