tags:

views:

33

answers:

2

how to put functionality to allow other sites to import our sites users?

+1  A: 

Please try adding more detail to your question, but as far as I can understand you may be interested in OpenID. Read these two links to find out if it is what you are interested in.

http://openid.net/

http://en.wikipedia.org/wiki/OpenID

Jacob Nelson
i want to know just like as facebook. for example other sites connect with facebook and we log in through facebook account on the site. if user registered in the facebook than that user loged in the site. i also want to provide the facility to the user who is registered in my site than on site's users can log in through my site's user
Rana Azeem
+1  A: 

You need to create a web service of some kind. Whether it be an XML feed, RSS feed, or even (as jball mentioned) providing direct password-authenticated read access directly to your database server (mysql or mssql for example).

an example might be, if another site wants to get a list of usernames starting with the letter "u", they might fetch the data from a call something like this:

http://www.yourwebsite.com/getUsernames.php?startingLetter=u

and the returned data would be something like..

...
<user>Uncle Jim</user>
<user>UnderpantsMcGoo</user>
<user>Unstoppable</user>
...

Whichever method you choose, make sure you read up on how to get a PHP page to properly generate the desired data in the correct format.

Dutchie432