From: beena at blr dot cmc dot net dot in Operating system: Windows 2000 Server PHP version: 5.0.4 PHP Bug Type: MySQL related Bug description: MySQL Connection problem
Description: ------------ i have loaded PHP 5.0.4 on Windows 2000 server, IIS 5 & MySQL 4.1. when i try to run a php script to establish a connection with MySQL, it gives me a Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\wwwroot\estbconn.php on line 2 in the script file. i am able to use MySQL @ command line. i have copied the file libmysql.dll to c:\winnt\system32 folder and it also exists in c:\PHP folder. i have also set the path in for C:\PHP. pls help me in order to enable me to execute more PHP scripts for MySQL database Reproduce code: --------------- <?php $connection=mysql_connect("localhost","root","sql123") or die("A connection to server could not be established"); echo "root user login in MySQL server @ localhost successful"; ?> Expected result: ---------------- connectivity to happen Actual result: -------------- Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\wwwroot\estbconn.php on line 2 -- Edit bug report at http://bugs.php.net/?id=33228&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33228&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33228&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33228&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33228&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33228&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33228&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33228&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33228&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33228&r=support Expected behavior: http://bugs.php.net/fix.php?id=33228&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33228&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33228&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33228&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33228&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33228&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33228&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33228&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33228&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33228&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33228&r=mysqlcfg