help w/ php mysql connect problem!!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ligerdave

    help w/ php mysql connect problem!!

    i run php4+mysql+apac he2 on linux(ubuntu). every time i try to use
    mysql_connect function, it says something like this:
    Fatal error: Call to undefined function: mysql_connect() in
    /home/ligerdave/website/test.php on line 13


    plz help!!!!!

  • Marcin Dobrucki

    #2
    Re: help w/ php mysql connect problem!!

    ligerdave wrote:[color=blue]
    > i run php4+mysql+apac he2 on linux(ubuntu). every time i try to use
    > mysql_connect function, it says something like this:
    > Fatal error: Call to undefined function: mysql_connect() in
    > /home/ligerdave/website/test.php on line 13[/color]

    It seems your php is compiled without mysql support (see phpinfo()
    for details).

    /Marcin

    Comment

    • Andy Hassall

      #3
      Re: help w/ php mysql connect problem!!

      On 30 Aug 2005 13:12:32 -0700, "ligerdave" <david.c.fu@gma il.com> wrote:
      [color=blue]
      >i run php4+mysql+apac he2 on linux(ubuntu). every time i try to use
      >mysql_connec t function, it says something like this:
      >Fatal error: Call to undefined function: mysql_connect() in
      >/home/ligerdave/website/test.php on line 13[/color]

      You haven't got PHP compiled with MySQL support. You need to either recompile
      PHP with MySQL support enabled, or compile a dynamically loadable MySQL PHP
      extension module.

      http://uk.php.net/manual/en/ref.mysql.php or search Google for the error
      message you got, there will be lots of hits.

      --
      Andy Hassall :: andy@andyh.co.u k :: http://www.andyh.co.uk
      http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

      Comment

      • Carl

        #4
        Re: help w/ php mysql connect problem!!

        ligerdave wrote:[color=blue]
        > i run php4+mysql+apac he2 on linux(ubuntu). every time i try to use
        > mysql_connect function, it says something like this:
        > Fatal error: Call to undefined function: mysql_connect() in
        > /home/ligerdave/website/test.php on line 13
        >
        >
        > plz help!!!!!
        >[/color]

        With Ubuntu, you shouldn't _have_ to compile anything yourself.
        Make sure you have installed the php4-mysql package, and make sure the
        'extension=mysq l.so' line is in your php.ini file.

        Comment

        • 老凹

          #5
          Re: help w/ php mysql connect problem!!

          There is something wrong with your PHP4;
          Please install it again, and make sure your have removed the ";" before
          "extensions : php_mysql.so" in your php.ini

          Comment

          • rich@newsguy.com

            #6
            Re: help w/ php mysql connect problem!!

            In article <1125432752.791 930.296130@o13g 2000cwo.googleg roups.com>, ligerdave
            says...[color=blue]
            >
            >i run php4+mysql+apac he2 on linux(ubuntu). every time i try to use
            >mysql_connec t function, it says something like this:
            >Fatal error: Call to undefined function: mysql_connect() in
            >/home/ligerdave/website/test.php on line 13
            >
            >
            >plz help!!!!!
            >[/color]

            Based on the error it sounds like you might have installed PHP without enabling
            the MySQL option. If test your configuration with "php_info() ;", that should
            tell you if you need to re-install PHP with that option.

            Rich
            --
            Newsguy -- http://newsguy.com

            Comment

            Working...