/* * * Because php 4 does not have a proper OOP implementation * here is a way to have php4 destructor and constructor * */ class demoClass { // {{{ constructor /** * php4 class contructor * * @return object */ function demoClass() { //destructor register_shutdown_function(array(&$this, '__destruct')); //constructor $argcv = func_get_args(); call_user_func_array(array(&$this, '__construct'), $argcv); } // }}} // {{{ __construct() /* * constructor function implementation */ function __construct() { //code for constructor goes here } // }}} //{{{ __destruct() /* * destructor function implementation */ function __destruct() { //code for destructor goes here } //}}} }
Wednesday, August 24, 2005
PHP 4 constructor and destructor
Here is a way to have constructor and destructor functions in php4:
Thursday, August 18, 2005
Zend Certification Study Guide and Errata
Finally, after a week of waiting the Zend Certification Study Guide arrived. I was so eager to read it...
Started reading the tests (I was really curious about the questions): chapter 1, page 15 first error:
Discussed on phparch forum
Jason Sweet cleared that out (printing error), but still, I believe it needed a better checking before releasing it on the market, and I bought the 2nd edition...
After googleing, I found the Errata, and this discussion started by someone less patient than me...
So, now I can continue my reading... And after that, I will take the test.
Tuesday, August 16, 2005
12th Brainbench badge
It's official, I know how to use Windows XP :D
Well, I tested my skills in Computer Fundamentals (Win XP), and passed the test... Too many questions related to windows help system, I guess there were 10-12 question about how to use windows help, how to search, about the results and so on, and this is not my strong point, because I don't use windows help...
Anyway, got this orange badge:
Until now, my Brainbech Certifications, did not help me too much, here in Romania there are many employers that have no idea what Brainbench is... Sad
Labels:
Brainbench,
Certified
Subscribe to:
Posts (Atom)