Reddit uses Python. Not sure what Digg uses. However, you can build both of those websites using PHP, Javascript, and their libraries. HTML and CSS control the look of your website, while PHP and Javascript control how your website functions. MySQL will help you interact with your database. You'll pick these up as you go along. Start from the basics: HTML and CSS. Then learn PHP, followed by Javascript.