How to duplicate accounts between web databases?

Soldato
Joined
25 Feb 2003
Posts
3,263
Location
Stafford (uni)
Basically what I want to do is have a Wiki database/ layout for my site and also have a phpBB forum. The easiest way I think to do this will probably be to duplicate the username and password from the Wiki database to the phpBB one thus creating a new account for it and I presume this can be done through copying the strings somehow and then putting them into the phpBB database through a php script adding user accounts.

Forgetting the fact that I don't have a clue how to do this, is it even possible considering that passwords are encrpyted so how would you copy the password to make another account in the other database?

And if thats right that copying the password is impossible at least I can still copy the username and give them a default password (which they can change after), so I'd still like to know how to do it please.
 
Ok thanks so it's definitely possible then. But would you or anyone else be able to tell me exactly what code I need to place in each database and where it needs to go (which file or whatever)?

I know it's a lot to ask but it would take me hours to find out this information whereas one of you guys might already know exactly what code is needed. I mean reading from the file I create is simple enough in php but i'd need to know how to make the file from the Wiki database (including finding the string and password data), arguably the hardest part.
If not then nevermind, i'm still prepared to find out myself and would be useful I suppose because I can learn how the databases work. I presume the way to bridge the two databases would be to use an xml file to store the information thats being transferred, but thats the limit of my knowledge. Maybe not though as thats more to do with mySQL databases than passing info to php. Guess i'd just make any old file with the two data strings in.
 
Last edited:
Back
Top Bottom