Re: Having problems connection PHP to MSSQL2000
| From: | A. Mikkelsen | Date: | Fri, 28 Feb 2003 08:08:34 +0000 |
| Subject: | Re: Having problems connection PHP to MSSQL2000 | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18752@lists.php.net to get a copy of this message | ||
Thanks
I got it to work after I copied the DLL file to c:\PHP4
And added the extensions til the php.ini file.
//Anders
"Michael Power" <michaelpower@concentrix.co.uk> wrote in message
news:20030227142723.68469.qmail@pb1.pair.com...
> Did you enable the appropriate extension?
>
> If so have to given the IUSR_XXX (PHP) user permission to access/execute?
>
> Do phpinfo() to see if MSSQL is enabled...
>
> Cheers
> Mike
>
> --
> Michael Power
> Software Developer
> Concentrix Limited
> _______________________________________
>
> Helping you strengthen your customer relationships
>
> To find out more about how we can help you visit our website
> http://www.concentrix.co.uk
>
> The Technology Centre, Epinal Way,
> Loughborough, Leicestershire, LE11 3GE
> T: +44 (0)1509 235000 F: +44 (0)1509 221740
> _______________________________________
>
> > "A. Mikkelsen"
> >
> > Hi.
> >
> > I'm just installed the last PHP version on a WIN2k server with
MSSQL2000.
> > And i tried to connect to MSSQL with the following code:
> >
> > <?
> > $dbhost = "localhost";
> > $username = "sa";
> > $password = "";
> > $dbName = "license";
> > MSSQL_CONNECT($hostname,$username,$password) or DIE("DATABASE FAILED
> TO
> > RESPOND."); mssql_select_db($dbName) or DIE("Table unavailable");
> > ?>
> >
> > But I keep getting the same error.
> >
> > Fatal error: Call to undefined function: mssql_connect() in
> > D:\Licens\php\main.php on line 6
> >
> > Can anybody help me ????
> >
> > //Anders
> >
> >
>
>