473,411 Members | 1,889 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,411 software developers and data experts.

CGI to ISAPI, now no MySQLi

Have been running PHP 5.1.1 successfully for quite some time as CGI in IIS
5.1 on my Windows XP Pro SP2 laptop, with MySQL Server 5.0.18 and the
mysqli extension. I wanted to see if I could get away from some CGI
timeouts I've been experiencing by moving from GCI to ISAPI on PHP. So I
removed the mapping for the CGI .exe and added in the mapping for the
php5isapi.dll, which in C:\PHP. The php_mysqli.dll file is in C:\PHP\ext.
I made sure extension_dir = "C:\PHP\ext" was set in php.ini, and that the
uncommented line extension=php_mysqli.dll was present there as well.
Following the directions of some other discussions I read elsewhere, I also
moved the libmysql.dll file from C:\PHP to C:\WINDOWS\system32. I stopped
and restarted IIS. Now, the error I get on the first line of PHP in my app
that tries to create a new mysqli object is:

Fatal error: Class 'mysqli' not found in C:\Inetpub\wwwroot\vsx\includes
\sessions.php on line 34

What am I missing here! I'm tearing my hair out now. Someone please tell
me what setting I have to change to get MySQLi to work in PHP 5.1.x as an
ISAPI.

Christopher Watson
AAVSO VSX
Jan 15 '06 #1
6 2066
Is your php.ini sitting in C:\PHP? The ISAPI module won't use it if
it's there.

Jan 15 '06 #2
"Chung Leong" <ch***********@hotmail.com> wrote in
news:11**********************@o13g2000cwo.googlegr oups.com:
Is your php.ini sitting in C:\PHP? The ISAPI module won't use it if
it's there.


Yes, as a matter of fact, my php.ini IS sitting in C:\PHP. Where should it
instead go?
Jan 15 '06 #3
Put it in C:\Windows.

Jan 15 '06 #4
"Chung Leong" <ch***********@hotmail.com> wrote in
news:11**********************@f14g2000cwb.googlegr oups.com:
Put it in C:\Windows.


That's exactly where I put it (having read that elsewhere), and all is
working now. Thank you.
Jan 17 '06 #5
On 15 Jan 2006 07:37:36 -0800, "Chung Leong" <ch***********@hotmail.com> wrote:
Put it in C:\Windows.


There's never any need to move things to the Windows system directories, and
it only leads to pain later. You can do it more cleanly with environment
variables.

Use PHPRC to control where the php.ini file is read from.
Use PATH to add DLLs.

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 17 '06 #6

Andy Hassall wrote:
On 15 Jan 2006 07:37:36 -0800, "Chung Leong" <ch***********@hotmail.com> wrote:
Put it in C:\Windows.


There's never any need to move things to the Windows system directories, and
it only leads to pain later. You can do it more cleanly with environment
variables.

Use PHPRC to control where the php.ini file is read from.
Use PATH to add DLLs.


Agree. Putting stuff in C:\Windows isn't the best. On the other hand,
it gets really confusing when you put it somewhere else.

Jan 18 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: yzzzzz | last post by:
Hi, I am compiling PHP 5.0.2 myself with MySQL support. I did a ./configure --with-mysqli=/usr/local/mysql/bin/mysql_config (see end of post for complete configure) Note: I also have...
0
by: Roy Shaw | last post by:
When configuring PHP5 (5.0.3) to use the mysqli libraries I get a "No such file or directory" from the configure script. My goal is to get PHP5 running with mysql 4.1.09 with both the mysql and...
2
by: ojorus | last post by:
Hi! Some questions regarding the mysqli-extension (php5) 1) Prepared statements: If I understand things right, prepared statements will give better performance if you make several similar...
12
by: davids58 | last post by:
trying to figure out how to use a mysql database with PHP. I ran the following code: <?php // defines database connection data define('DB_HOST', 'localhost'); define('DB_USER', 'ajaxuser');...
2
by: Curtis | last post by:
Hello everyone: Recently, I decided to upgrade to PHP 5.2.0. I have C:\php5 in the Windows XP PATH, so upgrading is quite painless; just unzip new release, and restart Apache! Usually it goes...
13
by: Schmidty | last post by:
If you do a page reload with $_SERVER will your program lose a mysqli connection upon the reload of the page? Would this code work? I need to know how to carry over a connection between methods as...
2
by: Curtis | last post by:
Hello everyone: I have come to love the ease of updating PHP, since getting used to using it these past few years. Recently, however, when I upgraded from PHP 5.1 to PHP 5.2.0 and again when...
21
by: Daz | last post by:
Hi everyone. I am trying to create an extension of the mysqli class within PHP, and I am finding it quite difficult. I am fairly new to PHP classes, and decided to give them a go. Here's what I...
2
by: Michael | last post by:
Hi, I try to use mysqli object instead of standard mysql functions. Is it ok to create mysqli object within my class or schould I pass mysqli object to my object. The problem is, with code...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.