When replacing large sections of HTML using str_replace, does the spacing/line wrap matter? What I mean is you want to say just copy and paste a large chunk of the matching text from your HTMl document into a string variable in PHP and was wondering if it'll match regardless of weird line feeds or spacings, etc..
jatar_k
6:51 pm on Sep 15, 2003 (gmt 0)
you may have to chop them out. I would try it and see what happens. You will know what to parse for by seeing what the script chokes on.
Using str_replace to swap huge chinks of text seems like a very slow thing to do though. Why not use dynamic includes or something. I don't really understand what you are doing though.