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: [SLE] To compile 64 bit?
    ... Try this (as root if you are not set up to build ... > rpm packages as a normal user), ... system as that chap with the GRUB problem seems to have done. ... learn how ot configure rpm to build programs as a user. ...
    (SuSE)