| re: Help: Fatal error: Call to undefined function mssql_connect()
Biffo wrote:
[color=blue]
> I have PHP Version 5.0.3 installed on Windows XP Pro with IIS as the
> webserver. All is working well, except I get a -
>
> Fatal error: Call to undefined function mssql_connect() in
> C:\Inetpub\wwwroot\CertificateOccupancy\main.php on line 33[/color]
good way to at least get an idea of what's going on:
if (function_exists('mssql_connect'))
echo "Okay, fn is there"
else
echo "Hmmm .. fn is not even there");
from there you can start to diagnose the problem better.
[color=blue]
> extension=php_mssql.dll
>
> in the php.ini file is working. I have set up paths for both the
> c:\php\ext and c:\php directories.[/color]
does php_info() show the extension as successfully loaded?
[color=blue]
> I had PHP 4.3.10 installed on the same box a day earlier, and the
> function worked. Also, I am using the ISAPI method for PHP instead of
> the CGI if it matters.[/color]
only things i can think of:
1. you've changed something about your SQL Server Installation since then
(does the mssql extension require extra libraries or DLLs or something) ??
2. PHP5 put php.ini in a different location and you're editing the wrong
one. (i.e. you're editing c:\php.ini and PHP5 is looking in C:\windows or
vice versa ...)
3. some paths aren't quite set up to find DB libraries or something.
good ruck.
mark.
--
I am not an ANGRY man. Remove the rage from my email to reply. |