ah, also on the server with php installed, you have to have the SQL Server Client tools, which includes the Client Utility, and you open the Client Utility and setup an Alias.
Click TCPIP, Write in the name of the server that you want to put in your connect statement, then below that click off the port so that it is only 1433, then type in the IP address. Save it and you can now connect.