Re: conditional classes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



thanks for the comments,

what i m planning to do is....

function _autoload($class) {
 if($class == 'Database') {
   if(class_exis('PDO') {
    include_once('Database_PDO.php');
   } else {
    include_once('Database.php');
 }
}
where in  Database_PDO.php contains

class Database extends PDO {
}

Database.php contains

class Database {
}

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux