gc on November 13th, 2008

don’t know if you already use this
function __autoload($class){
    # autoloading of a class #
    if (file_exists(”classes/class.”.$class.”.php”))
    include_once(”classes/class.”.$class.”.php”);
    else print “Failed to auto-load classes/class.{$class}.php”;
    }

it’s a little snippet of PHP code who take care of autoloading a class when you try to use it and the relevant definition file hasn’t still been loaded.
As you can see, if you use a bit [...]

Continue reading about __autoload

gc on November 13th, 2008

I recently came across an old .php file wich was layin’ around in my HD.
it was a pimped up version of one of my very first full OO projects back in 2000, dealing with mysql connections.
I used it in a really big project, when i also became used to CVS, business logic separation, [...]

Continue reading about Seeds