From: adamgeoffrey12 at yahoo dot com
Operating system: win xp sp2
PHP version: 5.2.5
PHP Bug Type: MSSQL related
Bug description: call to undefined function mssql_connect()
Description:
------------
im using iis,sql server 2005 and php 5.2.5
the php_mssql.dll extension is already uncommented in php.ini of php 5.2.5
win 32 installer, i have put the php_mssql.dll and ntwdblib.dll in system
32 and php\:extension folders the fatal error call to undefined function
mssql_connect() still comes.
testing for availability of php functions using;-
<?php
if (function_exists('mssql_connect')) {
echo "Okay, fn is there";
} else {
echo "Hmmm .. fn is not even there";
}
?>
it returns the else part, where the problem will be??plz help me i have
suffered this problem for months.
Reproduce code:
---------------
the code i used to connect to the database is as follows;-
<?php
$dbserver="localhost, 1433";
$dbuser="sa";
$dbpass="adam";
$dbname="Student";
?>
then
<?php
$dbconn=mssql_connect($dbserver,$dbuser,$dbpass);
mssql_select_db($dbname, $dbconn) or die("Unable to Open The Database");
?>
Expected result:
----------------
to connect to sql server, unfortunately i couldnt, plz plz help me out of
this big problem.
--
Edit bug report at http://bugs.php.net/?id=44234&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=44234&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=44234&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=44234&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44234&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=44234&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44234&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44234&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44234&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44234&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44234&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=44234&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=44234&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44234&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44234&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44234&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44234&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44234&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44234&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44234&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44234&r=mysqlcfg