title: Handling millions of photos on web server
body: <p>Im designing a social network. I have many questions regarding the design methodology and database design but according to the stackoverflow FAQ its better to make the question specified and focused. Or I will just list all the questions in one post.
  My question is:
  If you have a feature in the social network where user can create a photo albums, let’s assume that each user has 3 albums and each contain 10 photos that means each user has 30 photos each which will be stored in 3 deferent size large, medium, and small.</p>
  
  <p>30 photos x 200000 users = 6 000 000 M phots.
  That means 6000 000 million rows in DB not an issue for MySQL </p>
  
  <p><strong>Now my main question is how do you let the server handle the image data.
  Do you divide them into folders OR you simply add them all in one folder ….. ANY EXPERT HAD FACED THIS. Suggestions please… thx…?</strong></p>
  
  <p>Specification</p>
  
  <p>MYSQL DB
  PHP
  Shared Linux hosting for first 6 months.</p>