rolisz's site

URL routing with PHP

I still remember the first website I made. I shudder when I think back at those days. Lots and lots of copy-paste code, inexistent or crappy doc­u­men­ta­tion ("paginarea efectiv and don't mess with it"), poorly named variables ($cv, $cva, $x). But con­sid­er­ing I was the only developer and probably the only guy who saw the code, it wasn't that bad, because I was the one regretting it later on, when I had to upgrade the site :)). But there is one thing that was awful for the users too: the URLs. At the time (4 years ago) I didn't know about pretty urls. I could filter the content continue.