php-mysql problem, please help me!

From: veky (vekywong_at_netvigator.com)
Date: 09/29/03


Date: Mon, 29 Sep 2003 20:46:55 +0800

Hello,
I had a problem about php-mysql, I creat a test file: test.php, the content
shown below, when I use client PC (win 2000) to connect the
file(http://mydomain/test.php) show error message:

Fatal error: Call to undefined function: mysql_connect() in
/home/website/test.php on line 9

who can help me? thank a lot!

test.php:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
</head>
<body bgcolor="#FFFFFF">
<?php
$link=mysql_connect("localhost","root","password");
?>
<p></p>
</body>
</html>

server status:
[root@redhat9 root]# rpm -qa | grep php
php-4.2.2-17
php-ldap-4.2.2-17
php-imap-4.2.2-17
[root@redhat9 root]# rpm -qa | grep MySQL
MySQL-server-4.0.15-0
MySQL-client-4.0.15-0
[root@redhat9 root]#



Relevant Pages

  • Re: Linux Kernel source code Location
    ... >> Make sure you try to install the RPM as root. ... > You know how the error message looks like if you try to install ...
    (comp.os.linux.misc)
  • Re: Thank God for backups!
    ... Actually if there's nothing in there, your problem may lie elsewhere. ... As before it gives me the error message. ... prevent even root from deleting it. ... Have a look at the permissions, ...
    (Ubuntu)
  • Re: lsof t0rn
    ... Kirill Protsenko wrote: ... Root causes analysis is a discipline. ... So, linking to the newer ncurses is a workaround, but may cause some ... rpm -qf on RPM based distros; ...
    (comp.os.linux.security)
  • Re: Error: 17883, Severity: 1, State: 0
    ... It could be due to various reasons. ... This is a just a health detection message. ... To find the root cause, ... 818 did fix many other bugs and gave better error message and created mini dump when 17883 was generated. ...
    (microsoft.public.sqlserver.clustering)
  • Re: Ill be hornswaggled... RPM question
    ... > The original rpm ID is as follows: ... Type in your root password, ... Don't install software by double-clicking the file. ... Mandrake's urpmi, which is really a terrific tool, from the command ...
    (alt.os.linux)