Created
May 30, 2012 13:27
-
-
Save Ocramius/2836331 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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