PHP Classes

File: _autoload.php

Recommend this page to a friend!
  Classes of Marcelo Costa   PDO XML Grid   _autoload.php   Download  
File: _autoload.php
Role: Configuration script
Content type: text/plain
Description: config script
Class: PDO XML Grid
Show database data as HTML table using PDO and XSL
Author: By
Last change:
Date: 16 years ago
Size: 478 bytes
 

Contents

Class file image Download
<?php
session_cache_limiter
("nocache");
session_start();
# configuração do banco de dados
setlocale (LC_ALL, 'pt_BR.ISO8859-1');
define("RELDB", "mysql"); //mysql
define("DATABASE","pdo_ext");
define("HOST","localhost");
define("USER", "root");
define("PASSWORD", "");
define("OPTIONS", "");
# Uso de bufler
ob_start('ob_gzhandler');

# auto carregar classe a partir de quando ela é instanciada
function __autoload($classename)
{
include_once(
"class_".$classename.".php");
}

?>