PHP and MySQL problem

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

    PHP and MySQL problem

    Hi,
    I am running Debian 3.0r1 with Apache 1.3.27, MySQL 3.23.49 and PHP
    4.3.3RC3.
    I installed Apache and MySQL when I originally installed Debian and these
    work fine. I recently wanted to run some PHP scripts on my web server that
    talked to a MySQL database. I installed php4 and php4-mysql using apt-get.
    Unfortunatly I can't get the scripts to work. I keep getting the following
    error:

    Fatal error: Call to undefined function: mysql_connect() in
    /var/www/ganymede/dbtest.php on line 4

    mysql.so is located in /usr/lib/php4/20010901 and so I have the following
    entries at the bottom of my php.ini file:

    extension_dir=/usr/lib/php4/20010901/
    extension=mysql .so


    I haven't been able to find any useful information on how to fix this
    problem. Everything I've found so far says make sure I've installed
    php4-mysql and that I have extension=mysql .so in my php.ini file, but I've
    done all that. What am I missing? This is driving me nuts!

    - David


  • Martin Wickman

    #2
    Re: PHP and MySQL problem

    In article <bk5dnb$s8f$1@t itan.btinternet .com>, David wrote:[color=blue]
    >
    > Fatal error: Call to undefined function: mysql_connect() in
    > /var/www/ganymede/dbtest.php on line 4
    >
    > mysql.so is located in /usr/lib/php4/20010901 and so I have the following
    > entries at the bottom of my php.ini file:
    >
    > extension_dir=/usr/lib/php4/20010901/
    > extension=mysql .so[/color]

    What does phpinfo() say?

    Comment

    Working...