Guest User

Untitled

a guest
Oct 15th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. // zend framework è in /var/www/lib/Zend mentre il file che contiene l'autoloader è nella root
  2. <?php
  3.  
  4. // Setting include_path to add library to included dirs
  5. set_include_path(realpath(__DIR__ . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR .'Zend'.DIRECTORY_SEPARATOR. 'library') . PATH_SEPARATOR . get_include_path());
  6. // Initializing autoloader
  7. require_once 'Zend/Loader/Autoloader.php';
  8. Zend_Loader_Autoloader::getInstance();
  9. $dbh = new PDO('pgsql:user=garbezzano password=*a571992g* host=127.0.0.1 dbname=dbstrumenti');
  10. ?>
Add Comment
Please, Sign In to add comment