I'm just getting started with MySQL and PHP and am having trouble getting PHP to work under PWS. My machine runs W95.
MySQL is working.
PWS seems to be working. (I don't seem to have the recent version; [I have W95]. Do I need W98-2000 to get a newer PWS?)
When I try to run PHP I get the message that the ODBC32.DLL is missing. Where can I find this where does it go?
My setting for PHP are as follows.
The PWS-php4.reg file: >
The phi.ini file: >
I think these are the relevant settings. The message I get when trying to access a PHP file in my browser is: HTTP/1.0 500 Server Error (87)
Is my problem the lack of the ODBC32.DLL? Have I got the other settings right?
Any help is greatly appreciated,
You need two things to make it work correctly on Windows 95. You need to instal DCOM for Windows 95 and ODBC. I know you can download DCOM from the Microsoft site but I am not sure about ODBC. Search for it in the downloads directory. If it does not show up then search for "MDAC" and download MDAC2.5 to install on your machine. The MDAC components will include ODBC.
ODBC is also included in MS-ACCESS, MS-OFFICE and MS-Visual Studio.
I have DCOM for W95 installed and will go search for the other files. I did look on the Microsoft site for the ODBC but couldn't find it. Will look harder.
I found the ODBC25.EXE file, downloaded it, and extracted it to the same directory the ODBC25.EXE. The ODBC32.DLL file is there. However, when I try to start the php.exe the same message 'obdc32.dll not found' appears. Do I need to copy the .dll's from the ODBC25.EXE file into my WINDOWS or SYSTEM directory?
Sorry for the simple quewstions.
The file belongs in your C:\WINDOWS\SYSTEM directory.
Everything is working. I downloaded the MDAC2.51 .exe, installed the components, and everything worked when I ran php after I changed a setting in the php.ini. file.
Thanks a lot for your help.