PHP Classes

Warning: require(MDB2.php)

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  Upcoming Visual HTML ...  >  All threads  >  Warning: require(MDB2.php)  >  (Un) Subscribe thread alerts  
Subject:Warning: require(MDB2.php)
Summary:missing files ?
Messages:2
Author:mlmarius
Date:2007-05-26 13:54:26
Update:2007-05-26 20:04:20
 

  1. Warning: require(MDB2.php)   Reply   Report abuse  
Picture of mlmarius mlmarius - 2007-05-26 13:54:26
Hello . I am trying to make a few tests with the class . Problem is i am having trouble in making everything work corectly on my hosting . I have copyed all the flies and unzipped them on my web site but when i try to run the test_mdb2_linked_select.php ( or any *mdb*.php files ) i get those error messages :
Warning: require(MDB2.php) [function.require]: failed to open stream: No such file or directory in /path/to/folder/formsGeneration/test_mdb2_linked_select.php on line 9

Warning: require(MDB2.php) [function.require]: failed to open stream: No such file or directory in /path/to/folder/formsGeneration/test_mdb2_linked_select.php on line 9

Fatal error: require() [function.require]: Failed opening required 'MDB2.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /path/to/folder/formsGeneration/test_mdb2_linked_select.php on line 9

The file MDB2.php is ideed missing . I would like to know how can i get the hole thing working . I have checked the methabase class and that dosn't seem to have the file MDB2.php in it niether . What to do ?

  2. Re: Warning: require(MDB2.php)   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-05-26 20:04:20 - In reply to message 1 from mlmarius
You need to use PEAR::MDB2 to use those examples: http://pear.php.net/package/mdb2

Alternatively, you can also try the Metabase examples using the Metabase package available from here: http://www.phpclasses.org/metabase