Skip to content

Instantly share code, notes, and snippets.

@Ocramius
Created May 30, 2012 13:27
Show Gist options
  • Save Ocramius/2836331 to your computer and use it in GitHub Desktop.
Save Ocramius/2836331 to your computer and use it in GitHub Desktop.
// zend framework è in /var/www/lib/Zend mentre il file che contiene l'autoloader è nella root
<?php
// Setting include_path to add library to included dirs
set_include_path(realpath(__DIR__ . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR .'Zend'.DIRECTORY_SEPARATOR. 'library') . PATH_SEPARATOR . get_include_path());
// Initializing autoloader
require_once 'Zend/Loader/Autoloader.php';
Zend_Loader_Autoloader::getInstance();
$dbh = new PDO('pgsql:user=garbezzano password=*a571992g* host=127.0.0.1 dbname=dbstrumenti');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment