TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 11-17-2010, 01:14 PM   #1 (permalink)
The Acquainted
 
captainmerton's Avatar
 
Join Date: May 2009
Posts: 178
Thanks: 9
captainmerton is on a distinguished road
Default Handling Images

Looking for guidance on how to most easily handle images on a site i'm building. Its a basic site allowing users to login and update details - want funrtionality whereby they can add images which will then be displayed. Obviously i could take the images in and store them as BLOB type on a mySQL table. Is this easy to do? Also could i simply create a form where the images could be attached to an email and sent to me for storage in an images folder on the web server or alternatively allow users to add images to the images file on the web server. Any guidance, thoughts appreciated.

Cheers.
captainmerton is offline  
Reply With Quote
Old 11-17-2010, 05:18 PM   #2 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by captainmerton View Post
Looking for guidance on how to most easily handle images on a site i'm building. Its a basic site allowing users to login and update details - want funrtionality whereby they can add images which will then be displayed. Obviously i could take the images in and store them as BLOB type on a mySQL table. Is this easy to do? Also could i simply create a form where the images could be attached to an email and sent to me for storage in an images folder on the web server or alternatively allow users to add images to the images file on the web server. Any guidance, thoughts appreciated.

Cheers.
Leave the database for data and the filesystem for files.Just upload the images to a folder and have them linked to from the database If you dont want them to be directly accessed immediately just upload them below the webroot.
__________________

Village Idiot is offline  
Reply With Quote
Old 11-18-2010, 08:47 AM   #3 (permalink)
The Acquainted
 
captainmerton's Avatar
 
Join Date: May 2009
Posts: 178
Thanks: 9
captainmerton is on a distinguished road
Default

Thanks for the guidance. I assume i just manage display of the files by storing the file location on the database. Cheers.
captainmerton is offline  
Reply With Quote
Old 11-18-2010, 12:44 PM   #4 (permalink)
The Acquainted
 
captainmerton's Avatar
 
Join Date: May 2009
Posts: 178
Thanks: 9
captainmerton is on a distinguished road
Default

Further - any links to guidance on how to manipulate the images such as size etc and also how to actually load them into a file directory on the web server? Never done it before so pretty new to this. Any help much appreciated.
captainmerton is offline  
Reply With Quote
Old 11-18-2010, 05:32 PM   #5 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by captainmerton View Post
Further - any links to guidance on how to manipulate the images such as size etc and also how to actually load them into a file directory on the web server? Never done it before so pretty new to this. Any help much appreciated.
For image manipulation, use the imageGD library for PHP: http://php.net/manual/en/function.imagegd.php

Getting them on to the server has to be done via an upload forums, there are tons of guides on Google for this.
__________________

Village Idiot is offline  
Reply With Quote
Old 11-19-2010, 08:17 AM   #6 (permalink)
The Acquainted
 
captainmerton's Avatar
 
Join Date: May 2009
Posts: 178
Thanks: 9
captainmerton is on a distinguished road
Default

Thanks i'll check it out. Cheers.
captainmerton is offline  
Reply With Quote
Old 11-21-2010, 03:56 PM   #7 (permalink)
http://www.narvenblog.com
 
Join Date: Nov 2010
Location: Lisboa, Portugal
Posts: 12
Thanks: 0
narven is on a distinguished road
Default

For image manipulation, try WideImage - http://wideimage.sourceforge.net/ - it's really simple to use, with nice documentation.
__________________
there's something about the web...
http://www.narvenblog.com
narven is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Handling and Exceptions Farmer Absolute Beginners 3 12-11-2008 06:41 PM
uploading images into a tabe by multi users sarmenhb Absolute Beginners 1 06-20-2008 02:51 PM
Sliced Images not working in php site Kay1021 XHTML, HTML, CSS 5 06-03-2008 06:40 PM
Uploading images works for me but not others Orc General 13 02-15-2008 11:24 PM
Adding Images to a database from a folder Rendair Advanced PHP Programming 3 01-13-2008 07:40 PM


All times are GMT. The time now is 06:09 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design