3 Replies - 281 Views - Last Post: 22 July 2013 - 10:32 AM

#1 codespook  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 148
  • Joined: 31-October 12

social networking sites?

Posted 20 July 2013 - 06:49 PM

I'm curious about what social networking websites are from a coding standpoint. I know I must be fluent in PHP (or similar), but how or what type of code is used for connecting people and the "6 degrees of seperation" aspect that is the purpose of social networking sites? What functions are good to know in order to learn how to make one? Thanks
Is This A Good Question/Topic? 0
  • +

Replies To: social networking sites?

#2 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10824
  • View blog
  • Posts: 40,358
  • Joined: 27-December 08

Re: social networking sites?

Posted 20 July 2013 - 07:00 PM

You need to invest some time learning about relational databases. This is really a huge architecture and databases question. PHP is mainly responsible for querying the database and sending a response to the client. Not to be rude, but I hope you're not trying to create something on the scale of Facebook. Be realistic about your expectations.

Quote

"6 degrees of seperation" aspect that is the purpose of social networking sites?

This is a graph theory topic. A graph where each vertex is k-valent has a diameter at most logk(|V|), where |V| denotes the number of vertices. If there are 7 billion people in the world and six degrees of separation, then the graph is either 43-valent or 44-valent.
Was This Post Helpful? 0
  • +
  • -

#3 codespook  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 148
  • Joined: 31-October 12

Re: social networking sites?

Posted 20 July 2013 - 07:37 PM

lol
Its ok. No, I'm not trying to be the next Zuckerberg:-) I do have an idea, but not trying to compete.
Anyways, there are people who know more than me and they can make it tomorrow whereas I cant. Therefore, I may never implement an idea so I have no expectations.
However, if an6thing, I asked out of curiosity. Yes, the users and their profiles (as well as any message board, etc) will be database driven. (example, mysql) But I didnt know about graph theory. Thanks alot for your explanation!
Was This Post Helpful? 0
  • +
  • -

#4 travesty  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 68
  • Joined: 04-June 13

Re: social networking sites?

Posted 22 July 2013 - 10:32 AM

I'm working on a social networking site myself. Here's a great set of tutorials to go by. Only reference it though because he uses the depreciated "mysql" functions. Instead you need to query with PDO (my preference) or MySqli.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1