FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Is twitter/facebook written in PHP?





likeabreeze
The reason why I ask this question is because PHP is said to have a wide-range application.
So I wonder what language are popular websites like twitter/facebook written in...
why do they choose or not to choose PHP?
metalfreek
I don't know about twitter but Facebook was built using LAMP.

L = Linux
A = Apache
M = MySQL
P = PHP

There are so many other languages used but I think PHP is the primary one for facebook.
jmraker
Facebook was originally designed in PHP but with their growth they needed it to go faster so they created their own way of compiling PHP so the code runs natively inside it's own webserver.

http://www.sdtimes.com/blog/post/2010/01/30/Facebook-rewrites-PHP-runtime.aspx
http://en.wikipedia.org/wiki/HipHop_for_PHP
http://www.techworld.com.au/article/409887/facebook_releases_php_just-in-time_compiler/

http://www.artima.com/scalazine/articles/twitter_on_scala.html
likeabreeze
jmraker wrote:

http://www.artima.com/scalazine/articles/twitter_on_scala.html

according to this web page, twitter is written in scala?
have you ever tried this language?
jmraker
likeabreeze wrote:
jmraker wrote:

http://www.artima.com/scalazine/articles/twitter_on_scala.html

according to this web page, twitter is written in scala?
have you ever tried this language?


Twitter uses "Ruby on Rails" for most of the website pages we use. On the backend programs and services use scala, so twitter is a mix of Ruby on Rails and Scala.
johans
jmraker wrote:
Facebook was originally designed in PHP but with their growth they needed it to go faster so they created their own way of compiling PHP so the code runs natively inside it's own webserver.

http://www.sdtimes.com/blog/post/2010/01/30/Facebook-rewrites-PHP-runtime.aspx
http://en.wikipedia.org/wiki/HipHop_for_PHP
http://www.techworld.com.au/article/409887/facebook_releases_php_just-in-time_compiler/

http://www.artima.com/scalazine/articles/twitter_on_scala.html


really? is this information is correct? if this is true then i can say they are using free languages and database and yet they have a huge investment..
darthrevan
metalfreek wrote:
I don't know about twitter but Facebook was built using LAMP.

L = Linux
A = Apache
M = MySQL
P = PHP

There are so many other languages used but I think PHP is the primary one for facebook.


Atleast they went with a smart backend for their Social Network site. That would be what I'd used as well. Not WAMP Very Happy

Of course most of the dynamic sites like Facebook, Twitter, Identi.ca and more would require some kind of scripting language like PHP, Ruby, etc to function properly. I would probably guess that most places uses PHP more than other languages.
D'Artagnan
generally when a aplication becomes bigger "higher" level languages and frameworks become a burden

twitter started with ruby on rails, but today they use scala.
facebook started as a php website, after that the created hiphop see
https://developers.facebook.com/blog/post/2010/02/02/hiphop-for-php--move-fast/
Laned123
imposible Smile
Gregoric
I wouldn't even suppose that any of those would be built using PHP Wink. I've heard something about Ruby on Rails and Twitter but never read anything what was Facebook built on.
playfungames
jmraker wrote:
Facebook was originally designed in PHP but with their growth they needed it to go faster so they created their own way of compiling PHP so the code runs natively inside it's own webserver.

http://www.sdtimes.com/blog/post/2010/01/30/Facebook-rewrites-PHP-runtime.aspx
http://en.wikipedia.org/wiki/HipHop_for_PHP
http://www.techworld.com.au/article/409887/facebook_releases_php_just-in-time_compiler/

http://www.artima.com/scalazine/articles/twitter_on_scala.html


I thought the facebook re-written php would be publicly released someday.
Related topics
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.