homepage Welcome to WebmasterWorld Guest from 54.242.200.172
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
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




msg:4021600
 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




msg:4021738
 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




msg:4021756
 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




msg:4021806
 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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved