- 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
Now that I understand the cause, I can honestly say the real WTF here is PHP! Even MAKE has simpler white-space rules than this! Why can't PHP interpreter handle that? Is it every PHP version?
Admin
Securite background. Hah!!
Admin
Why does everyone think we are related?
Is it because they kept the f***ing in the family they believe the whole world does also?
Admin
Anyway, the answer to that question is to check if there is any echos before the "header" call. PHP errors can also echo to the screen, so check for those too. White space before the <?php can cause the error, but I didn't think white space after the ?> mattered.
Admin
Admin
I'd agree with you, but considering that bloody awful Thor movie was just out and you didn't see him wielding a claymore, did you? No, he's got a big fucking hammer! So, no excuse. If you're going Norse, you've got to go hammer or battle axe. Everybody knows that, you shouldn't need to look it up.
Admin
infantree is lieing out of his teeth.
Admin
FTFY
Admin
Problem?
/trollface
Admin
Godammit, you're a fucking retarded fake Indian. DIE DIE DIE!!!
</hangry-rant>
Admin
Admin
I am not a fukking fake retarded Indian. I am really Bob's adopted Indian son. Please to being more sensitive, dickwad.
Admin
PHP is designed to be integrated into an HTML document. By default, the entire document is HTML; the PHP portion has to be specifically marked and extends from the <?php start tag and ends at the ?> tag. (Properly: There can be multiple pairs of tags and anything not between the tags is HTML.)
If there's a blank before the starting tag then that is a significant blank that is part of the HTML document and has to be copied to the web client as-is. That, in turn, requires the HTTP headers to be sent (before the blank can be sent) and so the opportunity to override the headers is gone.
So it's really not a matter of PHP handling of white space, because the blank before the tag is not PHP; it's part of the HTML document.
Admin
Admin
Admin
Admin
Admin
Admin
Oh, damn. I've been caught. Never thought anyone would figure that one out.
Admin
It was for job at gas station, not curator of the Smithsonian.
Admin
Nothing. Not a thing. Just food for some homeless children. I've got something they can chew on.
Thank you for your time, loyal reader. !tuo, naM-enuZ
P.S. Did you know that having sex with a virgin can cure a man of AIDS? That's the word on the street, anyway. If the lamestream media would stop oppressing independent voices, we could get the word out and put an end to this epidemic once and for all!!!
Admin
@P.S. - Now the export tubes of the technologically focused are sure to be unsafe - occupied, even! Vehemently occupied!
Admin
Well, tdwtf is the home of nerds, geeks, pedants and sons of trollfuckers. Let this be a lesson and don't wave your intelligence around here next time.
Admin
I'll never make that mistake again. Matterhorn!
Admin
Well, the answer to that "headers already sent" can be more complex.
The scripts may have been previously saved with an editor that introduces the UTF BOM (Byte Order Marker). When you open the file in Notepad, it would automatically detect the two bytes and won't show them but alas, they're still there in the file.
PHP currently treats all files as ascii or files encoded in the whatever code page user has so the BOM is considered html content.
Another possibility is that those characters that forced the headers to be sent were actually in some script file that had a class inside - in the current script, maybe a class function was called, which caused the class to be auto load which was loaded when the class contained in the script was called at the line where the error was reported.
Another possibility is that the php was recently upgraded and some dumb guy left error reporting on and since some things can get deprecated, new warnings can show up... so somewhere in some script a warning/error got triggered.
Admin
Admin
YOU DID IT AGAIN!!! Matterhorn is a mountain in europe but you are clearly commenting on a virtual mountain of incompetence built on the corpses of stupid programmers.
Anyway, coffee?
Admin
Admin
Admin
Did you think he might not be talking about the mountain, but instead the grave matter ofhishorn?Which, if your eye-socket looks purdy enough, becomes a truly grave matter. He's warning you of the fury he's about to unleash by shouting it.Like when my toddler is babbling to much and I shout "Swoltzenass!"
Admin
Criminy, you're good.
Please. Cream, two sugars. Thanks.
Admin
(...load of bullshit...)
Well it's all ok then?
Admin
Admin
Admin
I am thinking that upon one time, the dodge that is having been used by Nagesh was quite deep and subtle and clever. He is having thought of a persona which is allowing him to make arch comments about coding and about racism of certain American programmers also.
And it is also by the way that I am not now Nagesh's sock puppet, but he is mine, for I am the hand and he is the sock.
Admin
Admin
Admin
Admin
Admin
Interestingly I got the job, and thankfully I never lost an offside mirror (although several nearside ones).
What a lovely story - I love stories!
Admin
TRWTF is the programmers who put the closing ?> at the end of the file at all. PHP makes it optional for a reason!
Admin
Admin
At least the "academic-programmers" get my jokes... well, some of them.
Admin
Nah...it's the relative minor.
Admin
Admin
This has to be one of the stupidest questions in the world. What the fucking fucky shitty fuck-fuck would anybody WANT to steal any fucking fucking paper clips in the fucking FIRST PLACE?
If (a) an employee feels the need to steal paper clips, there's something seriously wrong with him, and (b) if the employer is actually upset about the fact that an employee has pocketed a few paper clips from off the desk, then I'd ring up the local loony bin and call for the men in white coats to haul them off in fucking straitjackets. I mean, jesus fucking horticultural cobolwriting christ.
Admin
Because many of the inhabitants of the North of Scotland are descendants of the Norse. You can tell them by the fact that they are over 6 foot and have seriously red hair. You don't want to say "Fanta pants" in their vicinity.
Check out the name of the most northerly part of Scotland - it's called "Sutherland". South of what? Go see if you can find an atlas which has north west Europe on it and see what I mean.
Admin
Can I come? My Tomcat will take them all on.
Admin
But don't drink the hyd(e)ra, it's bad.
Admin
That's not funny: My son was overused and repetitive, and let me assure you, it was no laughing matter. I saw your one line reply referring to Paula Bean and it's not big or clever so fuck off. You're too young and stupid to be using the internet, so get off my lawn!