How can I connect mssql with a linux web host? I know its a microsoft database, but i'm sure it's possible, right? I have enabled remote access for MSSQL, now I just need this linux host to connect to it.
Any ideas/ways to fix it?
Thanks :)
How can I connect mssql with a linux web host? I know its a microsoft database, but i'm sure it's possible, right? I have enabled remote access for MSSQL, now I just need this linux host to connect to it.
Any ideas/ways to fix it?
Thanks :)
$host = 'blah';
where host is:PHP Code:$user = 'username';
$pass = 'password';
$db = 'GunzDB';
mssql_connect( $host, $user, $pass) or die ('Could Not Connect to Mssql Server');
mssql_select_db ( $db) or die ( 'Can not select database' );
Port is the default mssql port.Code:server_name:port
Last edited by Blasian; 16-03-11 at 02:02 AM.
And this will work on linux even though I don't have MSSQL support?
well if the MSSQL is hosted on a windows or w/e. But there this wine do.
then run winetricks and see if mssql is supported, I don't know whatsudo apt-get wine
sudo apt-get winetricks
version of linux your using, but even if you did Linux os can't run
gunz servers at least i never tried.
Dont for get to like if i helped u =,=
Last edited by Blasian; 16-03-11 at 02:08 AM.
You just want to host your WEBSITE on a linux box right? IF it's just the website just make sure apache/litespeed/whatever webserver is running on the linux box has the MSSQL support added (if it doesn't contact your host and ask for it! It's free for them anyway)
Then it's as simple as doing the remote connection as said above.
They said it didn't come with MSSQL but I feel as if I can add something to .htaccess to enable it. Would it be possible?
Posted via Mobile Device