PSD File included for free download.
Have a play and be nice to Dave
Need a quick and dirty captcha?
session_start();
$str = str_shuffle(‘abcdefghijklmnopqrstuvwxyz0123456789′);
$substr = substr($str, 0, 6);
$im = imagecreate(60, 25);
// white background and blue text
$bg = imagecolorallocate($im, 255, 255, 255);
$textcolor = imagecolorallocate($im, 0, 0, 0);
[...]
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 ![]()
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)
well yes, here it is - after years of procrastinating and deliberating the inevitable has happened…..
SpikeZ has a blog!
So what is the plan for this blog?
Basically for me to whack up some code snippets from helping on various sites mostly Sitepoint.com but also a few others.
I intend to add tutorials as well - PHP, MySQL [...]
Give Dave the penguin a good home!!