How does Facebook deliver social networking to 500 million people? It takes a whole lot of storage and some open source goodness like PHP.
http://www.developer.com/features/article.php/3894566/Inside-Facebooks-Open-Source-Infrastructure.htm