473,396 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

MDB2.php not found error

PHP and PEAR and MySQL Setup on Apache MDB2.php

note: error info after trying to connect includes 'MDB2.php' (include_path='.;C:\php5\pear')

I noticed some potential solutions on this in a closed post. After installing pear and installing mdb2 using the pear install. You have to install the driver for the db you will be accessing:

at a command prompt from tht php directory run this.
pear install MDB2_driver_mysqli

Note: the code below fails with the cannot find mdb2.php error (before the install above and works after). I found some info on this site as a solution to this error involving moving an ini file around, none of them worked for me but the install above did. I think it is an incomplete install bug not an ini bug.

FYI Good luck Mike A

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. require_once 'MDB2.php';
  3. $mdb2 = MDB2::connect('mysqli://root:mysql@localhost/test');
  4. if (PEAR::isError($mdb2)) {
  5.     die($mdb2->getMessage()  .' , '. $mdb2->getDebugInfo());
  6.     }
  7.     else
  8.      print 'connection succeeded';
  9.  
  10. ?>
Mar 21 '10 #1
1 6153
Umm unless the file is in the correct directory then I doubt it will find a imaginary file. I think you've confused PHP's require with something like pyhon's/java's import. If you installed it, it is loaded through a DLL not a file( well it is a file but its a special file to the Windows operating systems ). The load happens automatically when apache starts.
Mar 21 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: TimS | last post by:
I am getting a baffling File not found error (0x800A0035). I am writing asp on a windows 2000 server. I build a path and filename from several fields in a jet database using SQL commands, like...
0
by: Adil Akram | last post by:
I'm using IIS 5.0 Win2K (SP3). IIS sometime reports ASP 0126 "Include file not found" error on several .asp pages. 've checked my ASP coding its alright and works lot of time but some time it...
8
by: Matt | last post by:
I am migrating from NT 4.0 (IIS 4) to 2003 Server (IIS 6). Our Intranet has numerous applications that utilize the FileSystemObject (FSO) and each one is returning a "Path not found." error. These...
0
by: jake johnson | last post by:
I'm using Postgresql 7.3.4, FreeBSD 4.7, & Apache 2.0.47. I have a perl script which uses the DBI module and it works great from the command line as long as I have '/usr/local/pgsgl/lib' in...
1
by: Sanju | last post by:
Hi.. I have working on Windows XP Operating System.Installed J2sdk 1.4.07 and installed IBM DB2 UDB version 8.1 Then i got the following error.. The procedure entry point SQLPrepareW@12...
19
by: MLH | last post by:
I call the following Sub and Function in frmLaunch's OnOpen event code. I keep getting Property Not Found error for the AllowBypassKey setting. Failure point is line #30 in the Function (not the...
17
by: warlord | last post by:
I have a windows client app that is trying to download a file from a web server but I always get the following error when I call the GetResponse method of the Request object. The remote server...
5
by: eholz1 | last post by:
Hello Newsgroup, I have "installed" pdo using "pecl install pdo" (it intalled version 1.0.3), I have added the line "extension=pdo.so" to my php.ini file, but when I try to use the PDO db ...
5
by: stmfc | last post by:
i dont know why pl/sql block below returns no data found error. do you have any idea about it? declare c1 varchar2(80); c2 varchar2(80); begin execute immediate 'select col2 from table1 where...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.