Click here to Skip to main content
15,896,338 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i want fetch the data base of other web and i want to use this information in my web ,but i don't know how to connect with the database of other web...............plz give the code of connection......
Posted
Updated 20-Jul-15 3:50am
v2
Comments
Sergey Alexandrovich Kryukov 20-Jul-15 9:39am    
What do you mean by "other Web"?
—SA
Wendelius 20-Jul-15 9:43am    
This doesn't make sense. Can you clarify things as:
- what databases you have, SQL Server, Oracle, MySql...?
- do you need a connection to two separate database servers?
- from where do you need to make the connection, PHP, database?

1 solution

Please see my comment to the question.

If you mean connecting to the database used by some other site, generally you cannot do it, unless it's specially organized to provide you some access. Preventing direct access to the Web site is one of the major reasons to put the database server in a separate tier directly accessible only by the software on the site. You can only access it indirectly, via the Web applications or pages. Of course, it's possible to develop a Web service to access some database, but such services are usually application-specific, limiting the access according to the business logic of the application.

—SA
 
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