O'Reilly logo

PHP 5 Social Networking by Michael Peacock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Friends and Relationships

We now have a social networking site, where the only feature is that users can sign up, log in, and log out. This is, of course, the first step to any such site, as we need users. Now that we have users, we need some way for them to be able to connect to one another. For this to be possible, we need to be able to see the users on the site, search the users on the site, and subsequently request to connect to them.

In this chapter, you will learn:

  • How to allow users to invite their friends to the site
  • How to automatically invite a user's contacts to befriend them on the site, by connecting to other websites
  • How to list users on the site
  • How to search for users on the site and display the resulting users
  • How to allow ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required