i search the internet but all i found didn't help me...

i am running PHP 5.1.1,apache 2.0.55 and MySQL 5.0 on windows XP prof SP2 befor few days i had connection with the MySQL database and the mysql_connect() was ok , but yesterday i get this error "call of undefind function mysql_connect()....
i tried to check the php.ini configuration and i didn't see anything wrong.
but i notice that when i call phpinfo() i see that the extension_dir is C:/php5 but in fact i don't have such directory.
i checked the extension_dir in the php.ini and it is D:/PHP and it is the right directory where i installed php in it?
anybody would help please

    Check to see if you have more than one php.ini, windoze systems usually manage to have one in the winnt directory as well as the one in the php directory

      rincewind456 wrote:

      Check to see if you have more than one php.ini, windoze systems usually manage to have one in the winnt directory as well as the one in the php directory

      thanks for the reply,but i have only 2 php.ini ,one in the windoz directory (D:/windoz) and the other is the backup on which is in (D:/PHP/BACKUP)

        But if your phpinfo says that it's c:/php then it must be reading a different version of php.ini
        Well your mysql extension needs to be in the extension directory that php.ini is looking at.

          Thank you again, it is working now... it was my fault because i made few changes in the httpd file in the apache conf directory and when i remove it everything gose fine now
          thank you again for you concern.

            Write a Reply...