Home »
Imported messages »
comp.lang.php »
linking between 2 databases (on different servers)
linking between 2 databases (on different servers) [message #170349] |
Fri, 29 October 2010 22:50  |
info_at_inhousetraini
Messages: 2 Registered: October 2010
Karma: 0
|
Junior Member |
|
|
Hi,
I use 2 servers containing separate content. The content is accessed
using the same username and password. I have the ip remote server address
for one of the servers but the second server providers are refusing to
hand out the same information because of security concerns. The info I
store on this second server does have to be kept safe. Is there a way of
creating a link between the databases using php code which does not
require the ip address of the second server? I do not want to compromise
on security. Thank you for your time. ANF
-------------------------------------
--
+-----------------------------[ SERVER SIGNATURE ]--+
| Article posted via Web Developer's USENET Archive |
| http://www.1-script.com/forums/ |
| Web and RSS gateway to your favorite newsgroup - |
| comp.lang.php |
+---------------------------------------------------+
|
|
|
|
|
|
Re: linking between 2 databases (on different servers) [message #170366 is a reply to message #170352] |
Sat, 30 October 2010 15:55  |
Peter H. Coffin
Messages: 245 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On Sat, 30 Oct 2010 10:35:13 +0000, ANF wrote:
> Thanks for your effort. I have no background in php or MySql but I'm
> learning quickly because this has called a halt to the website
> development. If anyone has further suggestions please send them to me.
> The username/password registration occurs on the more secure server (if
> not handing out remote connection ip addresses makes the second more
> secure). The first server contains content which is accessed via
> username/password stored on the other server database. In effect the
> databases have to link. I did think of storing a table with
> authentication details on the first server - a copy of the registration
> table on the second server. Thus authentication takes place directly.
> However, I've been told it is not a good idea to have two tables with the
> same info for the same purpose in php. MySql provide a 'federated engine'
> solution for cross server access but I don't think that applies here as
> quieries (it seems to me) are only one way. Again, any ideas would be
> most welcome. ANF
It's a database issue, and not one that you can solve directly with PHP.
You cannot access the second database system, nor can you access the
information on it. The only way to make it happen is to get the data
onto the database system than you CAN access. Therefore, it's a DATABASE
problem that requires a DATABASE fix.
--
If any foreign minister begins to defend to the death a "peace
conference," you can be sure his government has already placed its
orders for new battleships and airplanes. -Joseph Stalin
|
|
|
Goto Forum:
Current Time: Thu Apr 10 19:57:03 GMT 2025
Total time taken to generate the page: 0.06420 seconds