- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Looks like PHP is always up for a good spankin'!
Admin
since the condition is messed up wrt smaller/larger comparisons, the spanking does not really matter, though
Admin
On second reading it does,...
Admin
This condition can never be true. Was it || instead of &&?
Gotta love the </spank> closing tag, too.
Admin
captcha: eros - how fitting!
Admin
Mmmm mojibake stew!
Admin
return '<spank style="font-family:wtf-ouch">FRIST'; [CAPTCHA]suscipit: he begins. How true.[/CAPTCHA]
Admin
"Spank" is one of those comedy words that can't be said with a straight face.
Admin
I, for one, am all for spanking programs when they misbehave.
Admin
This snippet needs <Spanks> for shapely tagging.
Admin
In Soviet Russia, monkey spanks YOU!
Admin
Oooh! A spanking, a spanking!
Naughty, naughty Zoot!
Admin
+1 for Monty Python references. Always.
Admin
Well caught, good Sir / Madam!
TRWTF is that it always returns a tag with font-family:kochi-gothic.
Everybody Knows Real Designers only use MS Comic Sans.
Admin
Reminded me of a Korean girl I knew who provided me num nums.
Admin
DINGO: And after the spanking, the oral sex. GIRLS: Oral sex! Oral sex!
Admin
There is no Zool, only data.
Admin
Please remember the elementary school rules. Attempted murder? Spanking. Successful murder? Spanking. Attempted assasination of El Presidente? Spanking. Successful assassination of El Presidente? Write "I will not kill El Presidente again" one hundred times.
Admin
You get +1 too for an XML reference and because I only see because of your post he wrote ZooL instead of ZooT :(
Admin
It's not a spanking, it's the end of a spanking!
Admin
Admin
What exactly is Korean Japanese? Like kimchi sushi?
Admin
If my reading of the jolly docs on php.net (http://www.php.net/manual/en/function.preg-replace-callback.php) is correct, this will convert a run of compatible entities into a separate </spank> for each entity, which might be a bit expensive for large chunks of CJK text (even if you have fixed the <= && >= bug).
Admin
Admin
Admin
Or if you're a Mozilla developer:
THERE IS NO DATA ONLY XUL.
Admin
Admin
TRWTF is converting from HTML to PDF, why not just deal with the HTML directly?
Admin
EDIT: or, indeed, tell me why I read the docs wrong.
Admin
Admin
It is obvious that something has gone wrong with code somewhere.
Admin
Admin
CAPTCHA: <captcha>
Admin
you blueposted a monty python reference? hang your head in shame
Admin
Admin
Man, browsers are getting advanced. Now, to deliver corporal punishment, parents only have to write an HTML page with
Admin
In Hyderabad, if we making a joke that lame, our parents would have beat us with a tire iron.
Admin
At work, I solved this in Java by creating an in-memory DOM object, converting it using an XSL-T template into XSL-FO, and using Apache FOP to create the PDF. It leaves the code small and generic, and leaves you free to format the invoice any way you want by modifying the XSL-T/XSL-FO template.
Admin
We were in the nick of time, you were in great peril.
Admin
Probablement un peu like Franglais.
Admin
What would a <spank></spank> actually do? Turn the innertext pink with red highlights? Make it cry? Play horrible muzak from a cheap porno?
Admin
Japanese for Chinese? That's a paddlin'. Japanese for Korean? That's a paddlin'. Japanese for Cyrillic? Ooh, that's such a paddlin'!