how to configure PHP5 to use MySQL in Windows XP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • R.A.M.

    how to configure PHP5 to use MySQL in Windows XP

    I use PHP5 in Windows XP Professional with Apache and MySQL installed. I
    would like to use MySQL. Now, I cannot use mysql_* functions because
    mysql_connect(. ..) returns
    Fatal error: Call to undefined function mysql_connect()
    PHP is problably not correctly configured to use MySQL. I think so, because
    when I open:
    localhost/phpinfo.php
    I receive no information about MySQL.
    So far, I have modified c:\windows\php. ini:
    ;;;;;;;;;;;;;;; ;;;;;;;
    ; Dynamic Extensions ;
    ;;;;;;;;;;;;;;; ;;;;;;;
    extension_dir = "c:/windows"
    extension=php_m ysql.dll
    extension=php_m ysqli.dll
    extension=libmy sql.dll
    But it is probably not correct or not enough, I suspect. All *mysql*.dll
    files are in c:\windows folder.
    Could you help me plase?
    /RAM/


  • ELINTPimp

    #2
    Re: how to configure PHP5 to use MySQL in Windows XP

    On Feb 20, 5:09 am, "R.A.M." <r_ahims...@poc zta.onet.plwrot e:
    I use PHP5 in Windows XP Professional with Apache and MySQL installed. I
    would like to use MySQL. Now, I cannot use mysql_* functions because
    mysql_connect(. ..) returns
    Fatal error: Call to undefined function mysql_connect()
    PHP is problably not correctly configured to use MySQL. I think so, because
    when I open:
    localhost/phpinfo.php
    I receive no information about MySQL.
    So far, I have modified c:\windows\php. ini:
    ;;;;;;;;;;;;;;; ;;;;;;;
    ; Dynamic Extensions ;
    ;;;;;;;;;;;;;;; ;;;;;;;
    extension_dir = "c:/windows"
    extension=php_m ysql.dll
    extension=php_m ysqli.dll
    extension=libmy sql.dll
    But it is probably not correct or not enough, I suspect. All *mysql*.dll
    files are in c:\windows folder.
    Could you help me plase?
    /RAM/
    did you restart apache after changing your php.ini file? If your
    running php as a module you need to restart.

    Comment

    • R.A.M.

      #3
      Re: how to configure PHP5 to use MySQL in Windows XP

      Uzytkownik "ELINTPimp" <smsiebe@gmail. comnapisal w wiadomosci
      news:3cba7169-3955-40cf-ac32-8bbd955d6da9@b2 9g2000hsa.googl egroups.com...
      did you restart apache after changing your php.ini file? If your
      running php as a module you need to restart.
      Yes, I rebooted my computer. Still, the same problem.
      /RAM/


      Comment

      • AnrDaemon

        #4
        Re: how to configure PHP5 to use MySQL in Windows XP

        Greetings, R.A.M..
        In reply to Your message dated Wednesday, February 20, 2008, 13:09:19,
        I use PHP5 in Windows XP Professional with Apache and MySQL installed. I
        would like to use MySQL. Now, I cannot use mysql_* functions because
        mysql_connect(. ..) returns
        Fatal error: Call to undefined function mysql_connect()
        PHP is problably not correctly configured to use MySQL. I think so, because
        when I open:
        localhost/phpinfo.php
        I receive no information about MySQL.
        So far, I have modified c:\windows\php. ini:
        ;;;;;;;;;;;;;;; ;;;;;;;
        ; Dynamic Extensions ;
        ;;;;;;;;;;;;;;; ;;;;;;;
        extension_dir = "c:/windows"
        ??????????????? ??????????????? ???????
        I *hope* You didn't install PHP into Your Windows directory...
        extension=php_m ysql.dll
        extension=php_m ysqli.dll
        extension=libmy sql.dll
        But it is probably not correct or not enough, I suspect. All *mysql*.dll
        files are in c:\windows folder.
        Could you help me plase?
        Install Your PHP into separate directory as intended.
        It may be C:\php or whatever You prefer.
        Point the extension_dir to the C:\php\ext (i.e.) where all extensions is
        located.


        --
        Sincerely Yours, AnrDaemon <anrdaemon@free mail.ru>

        Comment

        Working...