1000th topic!!

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
kenneth
New to forums
New to forums
Posts: 3
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Wed Jun 15, 2011 10:29 pm

1000th topic!!

Post by kenneth »

This isn't spam though, because I have a very serious question.

When I try doing a mssql connection to our mssql server on the web-hosting machine(s), it does not work. This is a code example:

Code: Select all

<?php
echo "Testing NFO-Server's mssql server connection function....";
$connection = mssql_connect("96.31.75.130,1403","sa","*Removed*");
if(!$connection)
{
	echo "<br />Failed to connect.";
}
else
{
	echo "<br />Successfully connected.";
}
echo "<br />Test has been completed.";
?>
here is a example of hosted1 box:
http://cool.site.nfoservers.com/test.php

here is a example of hosted2 box:
http://boutcheetah.zylongaming.com/test.php

(the above does not work)
this one does(not hosted on nfo web-hosting)
http://96.31.75.130/test.php
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: 1000th topic!!

Post by Edge100x »

MSSQL should be supported here (otherwise your script would be failing in a different way, actually). That means that we have to look at possible connection (firewall) and MSSQL server-side concerns. Are you restricting connections by IP address on that end?
kenneth
New to forums
New to forums
Posts: 3
Joined: Wed Jun 15, 2011 10:29 pm

Re: 1000th topic!!

Post by kenneth »

nope, I can connect to it on my pc with navicat
kenneth
New to forums
New to forums
Posts: 3
Joined: Wed Jun 15, 2011 10:29 pm

Re: 1000th topic!!

Post by kenneth »

Problem resolved.

Many thanks Vanderburg. :mrgreen: :mrgreen:

(The problem was the comma, aparantly it is depreciated in php 5 or something.)

Also, thank you too edge, just cuz you edge ;)
Post Reply