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