by ipaddr · 1y ago · 0 comments
That's why people taught each other that "you absolutely need to make session_start at the beggining of your file". No you don't, but since afterward the content starts to be sent the headers are already too.
I'm not saying you absolutely need to use a framework, but you should have only one echo in your requests.
I've never said the syntax you're saying is bad, I mean pretty much any templating language such has Twig uses this kind of stuff. The issue I have with this is how it works behind the scenes