Question

I'm new to web development. So far, I have a good idea of HTML and CSS.

1) I would like to know what are programming languages are required to develop a website like Imgur and what's the role of each language that will be used.

2) Assuming that a user has just uploaded an Image to Imgur, What would be the required steps to generate a unique HMTL file for that particular Image.

Was it helpful?

Solution

You would need:

  1. HTML
  2. CSS
  3. A server-side framework (e.g., PHP, Ruby on Rails, etc.)
  4. Most likely Javascript (but you might be able to get by without it)
  5. A database backend, such as PostgreSQL or MongoDB

You wouldn't need individual HTML sites. When someone goes to http://www.yoursite.com/image/1, the backend (usually .htaccess in Apache) will process it and turn it into /image.php?id=1, which PHP (or another framework) then uses to create an image-specific HTML page.

Good luck!

-totallyuneekname

OTHER TIPS

1) You're probably best looking into either PHP or ASP for a server side language. Also learn SQL, as you'll need to store information about the images somewhere, and a database will probably be best.

2)

  • Get unique ID of image from URL
  • Get the address of corresponding image from database, along with title, description etc.
  • Fill data into relevant parts of your template, i.e image address inside image tag, title in h1 and title tags etc.

You wouldn't need to create new HTML files every time you want someone to view an image. You can just have 1 php file which loads something from a database which gets what you are looking for.

For this you'll probably need: HTML, CSS, MySQLi\pdo, javascript.

It might also be beneficial not just for you to learn a framework, but to work on one too, as it can help you in big projects.

One I regularly work with is codeigniter and it has a lot of good documentation to read through.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top