By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,622 Members | 2,070 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,622 IT Pros & Developers. It's quick & easy.

Where do I activate mysql support?

P: n/a
I run php pages in IIS in cgi-mode(only pointing them to PHP.exe).

But I can't connect to database:

Fatal error: Call to undefined function: mysql_pconnect().....

I read that I have to activate PHP with mySQL support...but where in my
scenario??

I looked at php.ini...but no results...

any help appreciated..

regards.

--
fabriZio
Jul 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi !
On Wed, 9 Jul 2003 00:42:32 +0200, "fabriZio"
<jo**********************@yahoo.it> wrote:
I run php pages in IIS in cgi-mode(only pointing them to PHP.exe).

But I can't connect to database:

Fatal error: Call to undefined function: mysql_pconnect().....

I read that I have to activate PHP with mySQL support...but where in my
scenario??

I looked at php.ini...but no results...


Maybe look again. Is the extension for mysql commented maybe (with a ;
???)

HTH, Jochen
--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
Jul 16 '05 #2

P: n/a
Only lines I found are:

;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for
it.
;
;extension=php_bz2.dll
;extension=php_cpdf.dll
;extension=php_crack.dll
;extension=php_curl.dll
;extension=php_db.dll
;extension=php_dba.dll
...............
CUT

but there aren't mysql dll (also MySQL and ODBC support is now built in)

Can u please help me?

--
fabriZio
"Jochen Daum" <jo*********@cans.co.nz> ha scritto nel messaggio
news:9h********************************@4ax.com...
Hi !
On Wed, 9 Jul 2003 00:42:32 +0200, "fabriZio"
<jo**********************@yahoo.it> wrote:
I run php pages in IIS in cgi-mode(only pointing them to PHP.exe).

But I can't connect to database:

Fatal error: Call to undefined function: mysql_pconnect().....

I read that I have to activate PHP with mySQL support...but where in my
scenario??

I looked at php.ini...but no results...


Maybe look again. Is the extension for mysql commented maybe (with a ;
???)

HTH, Jochen
--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/

Jul 16 '05 #3

P: n/a

"fabriZio" <jo**********************@yahoo.it> wrote in message
news:be************@ID-188335.news.dfncis.de...
Only lines I found are:

;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for
it.
;
;extension=php_bz2.dll
;extension=php_cpdf.dll
;extension=php_crack.dll
;extension=php_curl.dll
;extension=php_db.dll
;extension=php_dba.dll
..............
CUT

but there aren't mysql dll (also MySQL and ODBC support is now built in)

Can u please help me?

--
fabriZio
"Jochen Daum" <jo*********@cans.co.nz> ha scritto nel messaggio
news:9h********************************@4ax.com...
Hi !
On Wed, 9 Jul 2003 00:42:32 +0200, "fabriZio"
<jo**********************@yahoo.it> wrote:
I run php pages in IIS in cgi-mode(only pointing them to PHP.exe).

But I can't connect to database:

Fatal error: Call to undefined function: mysql_pconnect().....

I read that I have to activate PHP with mySQL support...but where in my
scenario??

I looked at php.ini...but no results...


Maybe look again. Is the extension for mysql commented maybe (with a ;
???)

HTH, Jochen
--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/



I did use my WinME laptop with Apache/PHP/MySQL and it worked fine - as a
module.

I've just checked my php.ini and the help page and found that you don't need
to enable it - what version of PHP are you using? Do a phpinfo(); and
examine the output - search for 'mysql' and it should turn up a section on
its own - There is something in my Linux configuration that says that
MYSQL_MODULE_TYPE is 'builtin'.... Secondly, since you are using php.exe as
a cgi with IIS, maybe that could be the problem since I'm using mine as a
php/apache module.

If I remember correctly, on http://www.php.net/downloads.php I downloaded
the larger of the two windows binaries when I had installed it on my laptop
(the 6mb zip package, not the 1mb installer)... I know they both say they
have mysql support built in, but... well... unless you got dialup it won't
hurt to download the 6mb file and install it...

I hope that gives you some food for thought... its what I would try...
Jul 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.