I'm using php4 from the packages of debian 3, this are the php4 packages that i Have installed
ii libphp-adodb 1.51-1 The 'adodb' database abstraction layer for p
ii libphp-phplot 4.4.6-2 The graphic library for php.
ii php4 4.1.2-5 A server-side, HTML-embedded scripting langu
ii php4-cgi 4.1.2-5 A server-side, HTML-embedded scripting langu
ii php4-gd 4.1.2-5 GD module for php4
ii php4-imap 4.1.2-5 IMAP module for php4
ii php4-mysql 4.1.2-5 MySQL module for php4
this is the output of php4 -m
taiguer@savanah:~$ php4 -m
Running PHP 4.1.2
Zend Engine v1.1.1, Copyright (c) 1998-2001 Zend Technologies
[PHP Modules]
yp
xml
wddx
sysvshm
sysvsem
standard
sockets
shmop
session
posix
pcre
mbstring
iconv
gettext
ftp
filepro
exif
dba
ctype
calendar
bz2
bcmath
zlib
[Zend Modules]
Not Implemented
the script i'm using is from debian package "cacti" and it´s called cmd.php
this script includes another one
include ('include/database.php');
and when running php4 cmd.php this is the error I get
X-Powered-By: PHP/4.1.2
Content-type: text/html
<br />
<b>Fatal error</b>: Call to undefined function: mysql_connect() in <b>/usr/share/cacti/include/database.php</b> on line <b>19</b><br />
database.php is as follows
<?/
+-------------------------------------------------------------------------+
| raXnet Database Wrappers |
+-------------------------------------------------------------------------+
| This code was crafted by Ian Berry, make sure any questions |
| about the structure or integrity of this code be directed to: |
| - rax@kuhncom.net |
| - iberry@onion.dyndns.org |
+-------------------------------------------------------------------------+
/?>
<?
$current_path = dirname(FILE);
$do_not_read_config = true; include ("$current_path/config.php");
/ if no database name is specified; used default /
if ($database == "") { $database = $database_default; }
$cnn_id = mysql_connect($database_hostname,$database_username,$database_password) or die ("Cannot connect to MySQL server on $database_hostname");
$db = mysql_select_db($database, $cnn_id) or die ("Cannot find the database $database");
And it's included in a lot of other php4 scripts that work perfectly (under apache)