<?php
set_include_path('./library');
function __autoload($className) {
$path = str_replace('_', '/', $className);
require_once("{$path}.php");
}
$pdo = new Database_Mysql_Pdo();
var_dump($pdo);
$mysqli = new Database_Mysql_Mysqli();
var_dump($mysqli);
?>
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (0)