PHP Header redirect not working [duplicate]

Look carefully at your includes – perhaps you have a blank line after a closing ?> ? This will cause some literal whitespace to be sent as output, preventing you from making subsequent header calls. Note that it is legal to leave the close ?> off the include file, which is a useful idiom for … Read more

PHP Call to undefined function

This was a developer mistake – a misplaced ending brace, which made the above function a nested function. I see a lot of questions related to the undefined function error in SO. Let me note down this as an answer, in case someone else have the same issue with function scope. Things I tried to … Read more

PHP & Case Sensitivity 

Why is PHP partially case senstive? I can only speculate that this stems from very early versions, probably PHP/FI 2.0. The manual explicitely states: Keep in mind that PHP/FI function names are not case sensitive. Most user input, such as GET and POST parameters, has always been registered as global variables, back then. Treating these as case … Read more

HTML vs SHTML vs PHTML

It looks like SHTML = Server Side include HTML (SSI), which is just a fancy way of saying the server can dynamically inject code at the reference point (i.e. where the include is). PHTML is HTML code with inline PHP processing instructions.