Source for file instantiate_connectionstring.php

Documentation is available at instantiate_connectionstring.php

  1. <?php
  2. /**
  3. * Instantiation Example
  4. *
  5. * This example uses a ConnectionString argument to instantiate AbstractDB.
  6. * @package AbstractDB
  7. * @author Pacific-Cybersoft
  8. * @copyright (C) 2005 Pacific-Cybersoft. All Rights Reserved.
  9. * @version v 1.0.2
  10. * @license http://www.gnu.org/copyleft/lesser.txt GNU Lesser General Public License
  11. */
  12.  
  13. /**
  14. * Include the AbstractDB main class.
  15. */
  16. include("../abstractdb.class.php");
  17.  
  18. /**
  19. * @global AbstractDB An instance of the {@link AbstractDB} class.
  20. */
  21. $db = new AbstractDB(array("ConnectionString"=>"mysql://username:password@localhost:3306/mydatabase?Options/Persistent=1"));
  22.  
  23. // Always good practice to close AbstractDB at the end of each script.
  24. $db->Close();
  25. ?>

Documentation generated on Wed, 16 Mar 2005 23:17:24 +1100 by phpDocumentor 1.3.0RC3