FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » mssql_connect syntax when using port muber
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
mssql_connect syntax when using port muber [message #174640] Thu, 23 June 2011 16:19 Go to previous message
Chris Percol is currently offline  Chris Percol
Messages: 5
Registered: November 2010
Karma:
Junior Member
Hi,

I have a cron job successfully querying a random mssql database from
numerous servers using php cli (5.3.2) in conjunction with openvpn.

Connection strings are in the form of ip\instance. The one case where
the script doesn't work is for mssql instances that are on the other
side of an iptables box and the port number is required.

This same connection string works fine in sql management studio,
'192.168.1.1\instance_name,10000' but not as part of mssql_connection
in my script.

$link = mssql_connect('192.168.1.1\instance_name,10000', user, pass);

Anyone any thoughts as to why this isn't working when including a
port?

Many thanks,

Chris
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: guguk
Next Topic: library using $_SESSION
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 12:29:48 GMT 2024

Total time taken to generate the page: 0.06225 seconds