Jul 10

Alrighty then, here goes with the first of what I hope will be many tutorials.
This is a BASIC login script that uses a MySQL database to log someone in.

It is by no means a complete, secure, authorising system so please dont come back with things like; “Your session security is rubbish” or “Why isnt this in full OO code?” - It’s a principle tutorial with working code done in a semi OOP/procedural fashion for the purposes of learning.

So here we go, most of the text is in the code - cut, paste and learn :)

Jul 9
debugger function
icon1 SpikeZ | icon2 PHP, snippets | icon4 07 9th, 2008| icon3No Comments »

Debugger Function:

Wrote this for a small CMS to return a nicel formatted error string.
Accepts either a string or Array as the argument and cn debug superglobals as well

(POST, SESSION, GET, COOKIE et al)