Re: PHP not supporting MySQL




"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


.



Relevant Pages

  • Re: Failed opening mysql.inc for inclusion (include_path
    ... everything on another fedora core 6 server. ... installed php 5.2.5 and apache 2.0.63 ... I added the following to see if php even thought it could get there: ... I compiled apache with -- ...
    (comp.lang.php)
  • Re: Failed opening mysql.inc for inclusion (include_path
    ... everything on another fedora core 6 server. ... installed php 5.2.5 and apache 2.0.63 ... I added the following to see if php even thought it could get there: ... I compiled apache with -- ...
    (comp.lang.php)
  • Re: apache php cgi install problem
    ... installed php correctly. ... Save the page to your root remembering to give it the php extension. ... descriptor: don't know how to spawn child process: ... I have no experience in CGI - I only know it stands for Common Gateway ...
    (comp.lang.php)
  • Re: PHP is looking for php.ini file in c:windows
    ... I already did that when I first installed PHP... ... I've installed PHP ... ~john wrote: ... Well there is no php.ini file in my windows directory, ...
    (comp.lang.php)
  • Re: Cant make php to work with apache in xp
    ... >I have recently installed php, mysql and apache on xp. ... the instructions step by step. ...
    (comp.lang.php)