PHP / XHTML. Should I place everything in echo tags?
Posted
by 110175914651386975417
on Stack Overflow
See other posts from Stack Overflow
or by 110175914651386975417
Published on 2010-05-18T08:52:21Z
Indexed on
2010/05/18
9:00 UTC
Read the original article
Hit count: 134
A quick question involving PHP development, I seem to be wondering about this more and more as I develop more complex sites. Basically say we have a basic PHP / XHTML inbox (messaging system). I perform checks at the top (check if user is logged in, check if user has correct permissions etc). Then use the 'header('location:www.abc.com)' function if the authentication fails. The question is do I write the rest of the inbox code in a huge 'else' block or just use standard html. I read somewhere about about it being bad to put any code after using the 'header' function.
© Stack Overflow or respective owner