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

Anyone running ISAPI and mysql succesfully?

I have the following setup:

Windows XP Prof, IIS, PHP5

PHP5 works no problem with either PHP-CGI.EXE and mySQL,

PHP5 also works no problem with php5isapi.dll as long as I dont use
mySQL. When I use mysql It just gives an error or nothing when I try to
execute any mysql function (e.g. mysql_connect).

I have put the PHP.INI in C:\Windows but no luck. I have also setup the
PHPRC variable but no luck. I even put the IniFilePath in the registry
as per docs. Every time I reboot.

Can anyone tell me the exact steps to get ISAPI to work with mysql in
IIS?

Thanks

Jul 8 '06 #1
4 1865
On 7 Jul 2006 20:01:21 -0700, "ImOk" <jo**********@gmail.comwrote:
>PHP5 also works no problem with php5isapi.dll as long as I dont use
mySQL. When I use mysql It just gives an error or nothing when I try to
execute any mysql function (e.g. mysql_connect).
What is the error?

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jul 11 '06 #2
On 7 Jul 2006 20:01:21 -0700, in comp.lang.php "ImOk"
<jo**********@gmail.com>
<11**********************@h48g2000cwc.googlegroups .comwrote:
>| I have the following setup:
|
| Windows XP Prof, IIS, PHP5
|
| PHP5 works no problem with either PHP-CGI.EXE and mySQL,
|
| PHP5 also works no problem with php5isapi.dll as long as I dont use
| mySQL. When I use mysql It just gives an error or nothing when I try to
| execute any mysql function (e.g. mysql_connect).
|
| I have put the PHP.INI in C:\Windows but no luck. I have also setup the
| PHPRC variable but no luck. I even put the IniFilePath in the registry
| as per docs. Every time I reboot.
|
| Can anyone tell me the exact steps to get ISAPI to work with mysql in
| IIS?
Have you uncommented the extension=php_mysql.dll in the php.ini file?
---------------------------------------------------------------
jn******@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
Jul 12 '06 #3
There is no error which makes it difficult to even tell what is going
on.
Here is the simplest version of code that fails:

<?php
print 'Start';
$xx = mysql_connect('localhost') or die (mysql_error());
print 'End' ;
?>

The above code works and prints StartEnd to the browser whe using
php-cgi.exe

When I setup the php5isapi.dll (.php and add ISAPI filter) it fails to
execute the print 'End'

It prints "Start" but never prints "End" to the browser.

I even tried removing or die() and I get the same problem.

And yes, I do have the extensions in my PHP.INI otherwise the
php-cgi.exe wouldnt work either.

Thanks
Jeff North wrote:
On 7 Jul 2006 20:01:21 -0700, in comp.lang.php "ImOk"
<jo**********@gmail.com>
<11**********************@h48g2000cwc.googlegroups .comwrote:
| I have the following setup:
|
| Windows XP Prof, IIS, PHP5
|
| PHP5 works no problem with either PHP-CGI.EXE and mySQL,
|
| PHP5 also works no problem with php5isapi.dll as long as I dont use
| mySQL. When I use mysql It just gives an error or nothing when I try to
| execute any mysql function (e.g. mysql_connect).
|
| I have put the PHP.INI in C:\Windows but no luck. I have also setup the
| PHPRC variable but no luck. I even put the IniFilePath in the registry
| as per docs. Every time I reboot.
|
| Can anyone tell me the exact steps to get ISAPI to work with mysql in
| IIS?

Have you uncommented the extension=php_mysql.dll in the php.ini file?
---------------------------------------------------------------
jn******@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
Jul 12 '06 #4
ImOk wrote:
There is no error which makes it difficult to even tell what is going
on.
Here is the simplest version of code that fails:

<?php
print 'Start';
$xx = mysql_connect('localhost') or die (mysql_error());
print 'End' ;
?>

The above code works and prints StartEnd to the browser whe using
php-cgi.exe

When I setup the php5isapi.dll (.php and add ISAPI filter) it fails to
execute the print 'End'

It prints "Start" but never prints "End" to the browser.

I even tried removing or die() and I get the same problem.

And yes, I do have the extensions in my PHP.INI otherwise the
php-cgi.exe wouldnt work either.

Thanks
Jeff North wrote:
>>On 7 Jul 2006 20:01:21 -0700, in comp.lang.php "ImOk"
<jo**********@gmail.com>
<11**********************@h48g2000cwc.googlegrou ps.comwrote:

>>>| I have the following setup:
|
| Windows XP Prof, IIS, PHP5
|
| PHP5 works no problem with either PHP-CGI.EXE and mySQL,
|
| PHP5 also works no problem with php5isapi.dll as long as I dont use
| mySQL. When I use mysql It just gives an error or nothing when I try to
| execute any mysql function (e.g. mysql_connect).
|
| I have put the PHP.INI in C:\Windows but no luck. I have also setup the
| PHPRC variable but no luck. I even put the IniFilePath in the registry
| as per docs. Every time I reboot.
|
| Can anyone tell me the exact steps to get ISAPI to work with mysql in
| IIS?

Have you uncommented the extension=php_mysql.dll in the php.ini file?
---------------------------------------------------------------
jn******@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------

Works fine for me - and I just set up a new server using isapi and MySQL
and it works just fine, also.

The fact it doesn't display the "End" message tells me it's terminating
for some reason. Check your Windows event log and IIS error log for
possible messages.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 12 '06 #5

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

Similar topics

2
by: Frank Conte | last post by:
I'm having a problem running a simple printer friendly script written in PHP. I'm not sure whether the problem is with apache 1.3 or with the scripts. I updated apache's config file httpd.conf to...
3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
6
by: mark | r | last post by:
I believe that ISAPI can convert a search engine friendly url string into a querystring? does anyone have any tutorials about using this feature in ASP? mark
22
by: Duncan Jones | last post by:
Hello, I just installed MySQL 4.0.18 on my Win2K computer. Once it installed, I ran the WinMySQLAdmin program and everything worked fine. The little green light was on, and I could connect to...
0
by: Massimiliano Marcon | last post by:
I'm triyng to install mysql server with rpm on a linux red hat 9.0 machine. The installation was succesfully, but now I can't start the server. I think the right command is mysqld_safe --user=mysql...
0
by: alchimista | last post by:
hi, I've succesfully installed mysql on linux 2.4.x (TRUSTIX), I've tried to move it on my chroot jail but after 10s it crashes with the following message: --- cut here---- 040602 18:22:21 ...
175
by: Sai Hertz And Control Systems | last post by:
Dear all, Their was a huge rore about MySQL recently for something in java functions now theirs one more http://www.mysql.com/doc/en/News-5.0.x.html Does this concern anyone. What I...
0
by: Erwin Moller | last post by:
Hi, I am one of those questionable people that started with Vista (Home Premium). Not because I think it is a ready/steady OS, but partly out of curiousity, and partly because I needed to work...
7
by: David | last post by:
Hi, I am attempting to do URL ReWriting with .NET to my classic ASP app. (Too big to upgrade to .NET at the moment). However, those who have tried will know that classic asp when rewritten...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.