PHP on win32 with IIS and MSSQL 2000
Posted: Fri Jan 10, 2003 3:57 am
I am trying to recode a web site I have from ASP to PHP. Firstly i want to get a connection to the underlying SQL database.
When executing the code below in a php script i get a message in the browser "No input file specified". I found a few topics relating to the --enable discard path etc etc but this only seems to be based on Linux systems?
<?php
$myServer = "localhost";
$myUser = "sa";
$myPass = "";
$myDB = "ooh_webcontent";
$s = @mssql_connect($myServer, $myUser, $myPass)
or die("Couldn't connect to SQL Server on $myServer");
$d = @mssql_select_db($myDB, $s)
or die("Couldn't open database $myDB");
?>
Please can someone help?
When executing the code below in a php script i get a message in the browser "No input file specified". I found a few topics relating to the --enable discard path etc etc but this only seems to be based on Linux systems?
<?php
$myServer = "localhost";
$myUser = "sa";
$myPass = "";
$myDB = "ooh_webcontent";
$s = @mssql_connect($myServer, $myUser, $myPass)
or die("Couldn't connect to SQL Server on $myServer");
$d = @mssql_select_db($myDB, $s)
or die("Couldn't open database $myDB");
?>
Please can someone help?