How was Facebook built?

Discussion in 'PHP' started by Frazmand, May 1, 2010.

  1. #1
    Hi guys,

    Quick question - what is the infrastructure behind Facebook, it is PHP built using databases?
     
    Frazmand, May 1, 2010 IP
  2. n3r0x

    n3r0x Well-Known Member

    Messages:
    257
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    120
    #2
    n3r0x, May 1, 2010 IP
  3. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #3
    They use PHP with Smarty Templating Engine, if you use the following code:

    <?php
    print_r(get_headers('http://facebook.com/'));
    ?>
    PHP:
    The output array contains several references to PHP such as the redirect (Location: http://www.facebook.com/common/browser.php)
     
    danx10, May 1, 2010 IP
  4. SunShellNET

    SunShellNET Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    woh, I never though that it was full of php.
     
    SunShellNET, May 1, 2010 IP
  5. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #5
    Using a open-source platform would result in huge savings cost, than using something custom.
     
    danx10, May 1, 2010 IP
  6. n3r0x

    n3r0x Well-Known Member

    Messages:
    257
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    120
    #6
    Would result in huge security problems aswell. since the core could be shit.. ;)
     
    n3r0x, May 1, 2010 IP
  7. Obulus

    Obulus Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    PHP is one of the most flexible, most understand and most widely stable coding languages there is... Seems reasonable to use it!
     
    Obulus, May 1, 2010 IP
  8. SunShellNET

    SunShellNET Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    But PHP is widely used and the security depends upon the developer
     
    SunShellNET, May 1, 2010 IP
  9. RuiGomes

    RuiGomes Peon

    Messages:
    122
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Opensource is not always shit..
    Opensource can be better than paying double or triple to someone to get similar results
     
    RuiGomes, May 1, 2010 IP
  10. Obulus

    Obulus Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    @SunShellNET For such a huge organisation, Security is something that would be at the forefront of their development (as with anyone else's) and they have the staff/developers to make something that even the most prevelant of hackers couldn't retrieve information from.
     
    Obulus, May 1, 2010 IP
  11. n3r0x

    n3r0x Well-Known Member

    Messages:
    257
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    120
    #11
    Opensouce is allways a security problem since the no developer can code 100% secure apps, opensource apps would allow hackers to read the code.. and easier find exploits.. Hence Wordpress and joomla gets hacked so often
     
    n3r0x, May 1, 2010 IP
  12. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #12
    Maybe but PHP is a widely used open-source platform, which many websites today rely on. As facebook is closed source, theirs less chance of such 'security problems' occuring, at facebook.

    Some of you may also find interesting, some aspects of Yahoo use PHP too.
     
    danx10, May 1, 2010 IP
  13. n3r0x

    n3r0x Well-Known Member

    Messages:
    257
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    120
    #13
    Closed source with 1 interpretation bug and parts of the source was leaked..=)

    To clarify i think "Huge" websites like facebook should use Compiled code for speed and security. but that´s just me.
     
    n3r0x, May 1, 2010 IP
  14. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #14
    Large sites, gain alot of negative attention.
     
    danx10, May 1, 2010 IP
  15. SunShellNET

    SunShellNET Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    As far as I know, Yahoo completely use PHP, a custom made/recompiled, called YPHP. My brother works there.
     
    SunShellNET, May 1, 2010 IP
  16. n3r0x

    n3r0x Well-Known Member

    Messages:
    257
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    120
    #16
    Ofcourse they do.. they have information on what 600million users.. is it too much to ask that they have the best for security and so on?
     
    n3r0x, May 1, 2010 IP
  17. SunShellNET

    SunShellNET Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    and increasing .... :)
     
    SunShellNET, May 1, 2010 IP
  18. Frazmand

    Frazmand Peon

    Messages:
    144
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Thanks for the replies guys - I assumed it was something like that but thanks for the confirmation. I'll leave you to argue it all out :).
     
    Frazmand, May 1, 2010 IP