Jump to content

Recommended Posts

Hi,
  I'm trying to use the database of another website to authenticate users in my website.  This way the users at the other websites won't have to register at my website, all I would need to do is verify their name and password using the other website's database.  Is this possible, and if so where do I begin to work on it.
Link to comment
https://forums.phpfreaks.com/topic/20273-link-to-remote-database/
Share on other sites

you connect to it the same way as you connect to your own, except for instead of using 'localhost' you would use the target host's name instead. This does involve having a valid database name, username and password, along with knowing the table and fieldnames for that database, for that other site though..
He's right,

If you mean you want to authenticate your users with google for example,
forget it. But if want to use another site that you own or have administrator
access to, that should work fine with the method posted earlier.

If your looking for a site to unify your log-ins, I remember reading of an
open source project, which was rather mature, that 'unified' the way sites
logged users on. I'm sure, if this is the route you want to take, you could
find the project via google or sf.net.

Hope that helps.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.