TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Handling Images (http://www.talkphp.com/general/5631-handling-images.html)

captainmerton 11-17-2010 01:14 PM

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.

Village Idiot 11-17-2010 05:18 PM

Quote:

Originally Posted by captainmerton (Post 31214)
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.

captainmerton 11-18-2010 08:47 AM

Thanks for the guidance. I assume i just manage display of the files by storing the file location on the database. Cheers.

captainmerton 11-18-2010 12:44 PM

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.

Village Idiot 11-18-2010 05:32 PM

Quote:

Originally Posted by captainmerton (Post 31222)
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.

captainmerton 11-19-2010 08:17 AM

Thanks i'll check it out. Cheers.

narven 11-21-2010 03:56 PM

For image manipulation, try WideImage - http://wideimage.sourceforge.net/ - it's really simple to use, with nice documentation.


All times are GMT. The time now is 08:29 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0