Click here to Skip to main content
15,905,776 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I need to connect my PHP page to mssql remotely.Any one have any idea about this.

Problem is php page is hosted and database is situated locally,Need remote connection.

regards,
Shefeek
Posted
Updated 25-Jun-11 4:25am
v2

 
Share this answer
 
First you need to check that your hosting provider has installed the necessary PHP extension for connecting to a mssql database (either ODBC or mssql extension) and allows PHP scripts to make network connections. Next you must configure your mssql server and your network to allow the external web server to connect to the database while preventing connections from any other machines on the Internet. Then you can start figuring out the actual code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900