468,247 Members | 1,327 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,247 developers. It's quick & easy.

Where do I activate mysql support?

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
3 9749
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
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

"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.

Similar topics

5 posts views Thread by Jonas | last post: by
2 posts views Thread by Dave Booker | last post: by
2 posts views Thread by Phillip N Rounds | last post: by
3 posts views Thread by geskerrett | last post: by
1 post views Thread by Jason Wilson | last post: by
8 posts views Thread by =?Utf-8?B?cmtibmFpcg==?= | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.