function http_requests2_exists()
{
    $exists = include_exists('HTTP' . DIRECTORY_SEPARATOR . 'Request2.php');
    if ($exists['result']) {
        return array('result' => "Pass", 'path' => $exists['path']);
    } else {
        return array('result' => "Fail", 'path' => $exists['path']);
    }
}
Example #2
0
function __autoload($class_name)
{
    $strClass = 'class.' . strtolower($class_name) . '.php';
    if (include_exists($strClass)) {
        require_once $strClass;
        return;
    }
    $strClass = implode('/', explode('_', $class_name)) . '.php';
    if (include_exists($strClass)) {
        require_once $strClass;
        return;
    }
}