Newbie question. I have a project that need to access other web database using PHP. Is it possible?
for example:
I have a domain http://www.domain1.com with database1 and I have another domain http://www.domain2.com with database2 with different hosting. Can I access database1 from http://www.domain2.com which is also using database2?
Is it possible if it is the same hosting with 2 different domain?
You can connect to as many databases as many your application requires.
Get started with:
http://dev.mysql.com/doc/refman/5.0/en/connecting.html
Make sure port of domain2 allows authentication from domain1 (or you can keep it open for all, NOT RECOMMENDED).
If you are saying about JOINING databases then, so far I have worked on many projects where we had multiple databases on same server. So HOST was not an issue.