I've tried EVERYTHING!
I connected to Oracle 11g1 and MySQL 5.0.x under Fedora 9 with few problems.
Now I am trying to connect to SQL Server 2005 on XP Prof via the following code!
<?php
// Server in the this format: <computer><instance name> or
// <server>,<port> when using a non default port number
// $server = 'LANDON\SQLEXPRESS';
// $server = '(local)\sqlexpress';
$server = '.\sqlexpress';
$link = mssql_connect($server, 'sa', 'xoxoxoxox');
if(!$link)
{
die('Something went wrong while connecting to MSSQL');
}
?>
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: .\sqlexpress in C:\Inetpub\wwwroot\trymssql.php on line 7
Fatal error: Maximum execution time of 60 seconds exceeded in C:\Inetpub\wwwroot\trymssql.php on line 7
I just loaded PHP 5.2.6 and have been over the php.ini file 100 times.
I've set the path to the php directory.
I am able to do the phpinfo() vi the browser!
<?php
phpinfo();
?>
Using MS C# code I have been able to query tables in the SQL Server 2005.
Next I'll scour the phpinfo page for any clue and wade into the security settings!
MS docs go in circles!
I've searched for permission problems with XP Prof.
I am using windows authentication!
I haven't found any requirement to add anything surrounding code in this forum.