Date: 07/31/98
- Previous message: Martin.Krieger <email protected>: "[PHP-DEV] Bug #603: CGI on WIN95 not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: ddw <email protected>
Operating system: Linux 2.0.29 /CalderaOpenLinux Lite, libc5
PHP version: 3.0.2a
PHP Bug Type: MySQL related
Bug description:
PHP is a static apache module, apache v. 1.3.1
The error message is:
Warning: U?åfì4WVSè in system.php on line 8
^^^^^^^^^^!!!!!!!!!!
Warning: 0 is not a MySQL link index in system.php on line 9
Cannot select database.
the script is (comments left for explicit line numbers):
<?
# SecureVar("Sec_.*");
# SecureVar("HOST.*");
# SecureVar("SERVER.*");
# $mail="gergo <email protected> ";
$conn=mysql_connect('anna.argent.hu');
if(!mysql_select_db("cdabcd",$conn)){echo ("Cannot select database.\n");}
?>
The mysql server is v. 3.21.33, works properly. The database cdabcd exists. The error is the same if I give mysql username/password, with single quotes, double quotes as well. it is also the same with mysql_pconnect.
Ooops, it works with
mysql_pconnect('127.0.0.1'); /I have just found it.../
But, my nameservice works, the /etc/hosts file is OK.
And a PHP2 incompatibility:
securevar() is not implemented (?)
- Previous message: Martin.Krieger <email protected>: "[PHP-DEV] Bug #603: CGI on WIN95 not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

