E
E
ExperTKasl2017-07-02 21:42:29
MySQL
ExperTKasl, 2017-07-02 21:42:29

How to add a user to the database of several sites at once?

Good time of the day, please tell us how you can add a user who registers on one site site1.ru (the data is naturally stored in the database of this site), immediately to the database of other sites site2.ru (on the same server), site3.ru (and this is already on another server)? - Automatic (after clicking registration on the first site). Please also explain (comment) the code, thanks!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Boris Korobkov, 2017-07-02
@BorisKorobkov

If all sites are on one physical server, and you need to register a user everywhere, then it is more correct to create a common database of users on the same server. At the same time, each site can have its own database with its content.

M
Mr Hobot, 2017-07-02
@vashaaa

What's the problem then? There are sites, they have server parts, server parts have access to databases, when you create a user on one, in the same method you make requests to your other sites by sending data during registration

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question