ÐÐÐÑÐÐÐÐÑÐ ÐÐÐÐ. ÐÐÐÐÐÐÐÐÐÑÑ ÐÐ ÐÐÑÐÑÐÐÐ 
Apache+PHP+MYSQL. ÐÐÑÑÐÐÐÐ. ÐÑÐÐÐ ÐÑÐ 
ÑÐÐÐÑÐÐÑ ÐÑÐÐÐ php

ÐÐÐÐÐÐ php ÑÐÑÐÐÑ ÑÐÐÐÑÐÐÑÐÐ ÐÐÑÑÐ ÐÐÐÐ:

    $link = mysql_connect("10.0.0.1", "test", "test")
        or die("Could not connect\n");
    print "Connected successfully\n";

ÐÑÐÐ ÐÐÐ ÐÐÐÑÑÐÐÑÑ ÐÐ ÐÐÐÑÐÐÐ ÑÑÑÐÐÐÐ:
php4 script.php, ÐÐ ÐÑÐ ÑÐÐÐÑÐÐÑ. Ð ÐÑÐÐ 
"ÐÑÐÐÑÑÑÐÑÑ ÑÐÑÐÐ ÐÐÐÑ" ÑÐ:

Fatal error: Call to undefined function: mysql_connect() in /var/www/a/2.php 
on line 3

Ð error.log ÐÑÐ ÐÐÐÑÑÐÐ apache ÐÑÐÑÐÐÐÑ ÐÐÐÐÐÑÐÐÐÐ 
ÑÑÑÐÐÐ:

PHP Warning:  Unknown(): Unable to load dynamic library 
'/usr/lib/php4/20020429-zts/mysql.so' - /usr/lib/php4/20020429-zts/mysql.so: 
cannot open shared object file: No such file or directory in Unknown on line 

ÐÐÐÐ /usr/lib/php4/20020429-zts/mysql.so ÐÐÐÐÑÑÑ.

----------------
deb:/# php -ver
PHP 4.3.8-5 (cli) (built: Aug  9 2004 16:39:24)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
deb:/# apache2 -ver
Server version: Apache/2.0.53
Server built:   Feb 25 2005 08:45:27
----------------

-- 
##################################################
 Dmitry Nezhevenko   (dion)    <[EMAIL PROTECTED]>
 GnuPG Key 0x189EB9B8    Fri Mar 18 14:10:43 2005
##################################################

Ответить