homepage Welcome to WebmasterWorld Guest from 54.145.172.149
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Images
j05hr

5+ Year Member



 
Msg#: 4021598 posted 11:43 am on Nov 9, 2009 (gmt 0)

Hi, I'm making a CMS and I want it to be able for the staff to upload images, everywhere I go, i keep getting told it's not a good idea to store the images in the database. What's the best idea how to do this?

Thanks, Josh

 

JohnCanyon

10+ Year Member



 
Msg#: 4021598 posted 4:33 pm on Nov 9, 2009 (gmt 0)

Josh,

That is good advice, a better way to handle images is by storing a reference to the location of your image on the file system in your database.

Cheers.

JC

j05hr

5+ Year Member



 
Msg#: 4021598 posted 5:04 pm on Nov 9, 2009 (gmt 0)

How would this be done? Is there any links(i know you arn't meant to post links on here, but if it's showing how to do something is it ok?) or you be able to give an example?

Thanks John

rocknbil

WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4021598 posted 6:50 pm on Nov 9, 2009 (gmt 0)

I used to think this way too - one of the things I'd learned and forgotten why - but a member here is doing this [webmasterworld.com] and has opened the topic for discussion [webmasterworld.com].

Rule 1 about information found on the Internet (or anywhere else, for that matter: ) question everything.

I'm sure he will share the methods of storing/retrieving image blobs, some of those are touched on in the first link.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved