Apr 07, 2011 — 3 comments
Learn what sessions are and how to create, retrieve and delete sessions in PHP
Now before some snotty nosed individual points out that ACLs can be done via .htaccess, let me cover my arse by saying although it can be done that way, we're not doing it that way. More technically speaking, however, albeit Apache is the better way it's not the most practical way due to the manual updating of .htaccess files. Unless you wish to parse the file - which is not advised for security and speed reasons, then PHP is the way to be heading.
References are a useful tool in PHP, read this article to learn what they are and how they can be used.
Sanitisation and Validation are important terms to understand when writing PHP applications.
A function in its simplest form is a set of instructions. Learn the basics in this tutorial.
Learn the basics of coding an upload file form in PHP.
In this article, I'll be talking about a useful new feature introduced in PHP5 as part of the OOP improvements over PHP4. This feature is called Method Chaining and enables us to do pretty cool things like...
I still remember the time I was a PHP beginner, these little constant things were always a source of confusion. I remember attempting to overwrite their values like you do with variables and being presented with an unfriendly error. What on earth could their use be?
I sat down with a friend today and spent a good 5 hours attempting to breach the security of an unnamed website. The website in question is a rather popular website with an Alexa ranking of just over 3,000. I've always been of the opinion that esoteric knowledge is only esoteric because the individuals wish to make it that way. Governmental procedures, for instance, are very esoteric. Unless you're actually there, the procedures are well over many individuals' head.
We all use printf (or sprintf) to help ourselves when mingling together output strings with our variables, right? This is a tip that I use often, but I continually see people writing code where this technique would be useful but isn't used. What am I on about? Well, how many times have you seen people write something similar to this...
Help us out! More and more tutorials are submitted to Good-Tutorials each day. We could use your help with finding good tutorials. Mind lending a hand?