Jump to content

Storing images for websites


Maracles

Recommended Posts

This isn't so much as a question i need answering directly, more of a request for you pro's to direct me to useful tutorials, articles and so forth!

 

I'm building a new site and as a beginner I am unsure how to store pictures for this site. It is a site that will be update with new articles and news each day, similar to a blog, each of which will have some sort of picture of illustration. As such over time I imagine I will end up needing to store a lot of images in an organised way which are easy to retrieve for both the original articles and if I want to use them again. What is the best way of doing this?

 

I have built my databases in MySQL so from what i've read so far I have the choice of storing the actual file in the database, or storing in folders and somehow storing the links in the database. Either way I wouldn't really know how to start!

 

Thanks for any advice.

Link to comment
Share on other sites

Hi, I have done a similar thing before.

I stored the images in a folder and then called the image something that would relate to the purpose.

I'm not sure it's the best way to achieve it, but I had a user profile and I wanted to have a user profile picture.

So i let users upload and the file was called $userid.jpg.

That in itself is a link you see!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.