You are here: Re: <? print .. DIV> + InnerHTML question, thank you « All PHP « IT news, forums, messages
Re: <? print .. DIV> + InnerHTML question, thank you

Posted by Steve on 08/27/07 02:46

"Gregor Kofler" <usenet@gregorkofler.at> wrote in message
news:96556$46d1954d$557f14a8$2321@news.inode.at...
| Sιverin Richard meinte:
|
| > for single quote(') the right syntax may be:
| > ereg_replace( "'","\'",$someblog[0] )
| > or ereg_replace( "'","\\'",$someblog[0] )
| > or ereg_replace( "'","\\\'",$someblog[0] )
| >
| > try all of this.
|
| Now, that's what I call helpful...

man, there are a ton of prima donnas here! jesus christ!

| Anyway, since he's doing a lot of
| trying anyway, he should either stick to preg_replace()

i agree...it gives much better performance.

| if RegEx are
| required, since *this* is proper contemporary PHP.

"proper"?!!! wtf!

ummmm...ereg *IS* using regex. it's just a different processing engine.
"proper"...that's a laugh.

| However, in this case
| RegEx is complete overkill.

disagree completely.

| An ordinary str_replace() will do [1].

only if you're not used to writing regex. but to technically disagree, no,
str_replace won't easily take care of everything that should be checked.

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация