PHP code to find how 2 users are connected through friends in social network

This is the second version of our earlier post Find connection path between two users in a social network using PHP. In this version performance issues have been taken care upto some level along with minor tweaks to code to make it more efficient. Initialising start user, end user, maximum level/degree/depth [php] $user_from=1; //start user … Read more

Find connection path between two users in a social network using PHP

Social networking sites are coming up daily. Users are linked to other users based on various factors like friends, interests, groups, same school, same company, same locality and many more. In all these we are connected to people we know or upto next level that is friends of friends. A need has been identified to … Read more