Re: PHP not supporting MySQL
- From: "denis" <denis@xxxxxxx>
- Date: Wed, 7 Feb 2007 23:04:30 +0100
"Siegfreed" <sieg@xxxxxxxxx> wrote in message
news:45c98787$0$11603$afc38c87@xxxxxxxxxxxxxxxxxxxxxxx
My PHP version is obviously not compiled with MySQL support, consequently
I get the following message:-
Fatal error: Call to undefined function mysql_connect() in
C:\http-dir\board\connect.php on line 3
Question:- How do I instruct PHP to support MySQL?
Please note:-
extension=php_mysql.dll
extension=php_pdo_mysql.dll
in php.ini are enabled, and php.ini is located in the php root directory.
Thank you.
Along with the previous advice to add PHP dir to your system path, from the
top of my head
1) Run phpinfo() and see if the report displays the correct path to your
php.ini
2) Uncomment extension_dir in php.ini and set it to the appropriate folder
Something along the lines of
extension_dir = "C:\PHP\ext\"
p.s I do hope you installed PHP from the binary zip, not the installer, as
the second one doesn't include mysql support to my knowledge
Denis Gerina
.
- References:
- PHP not supporting MySQL
- From: Siegfreed
- PHP not supporting MySQL
- Prev by Date: Re: question about preg_*'s s modifer
- Next by Date: Re: question about preg_*'s s modifer
- Previous by thread: Re: PHP not supporting MySQL
- Next by thread: How to add (or emulate) a new superglobal
- Index(es):
Relevant Pages
|