liamloveslearning Posted October 1, 2008 Share Posted October 1, 2008 Hey everyone, a friend has a website he needs an automated gallery building where he can login and simply upload his own photos and they update his media page, however he doest have mysql installed, is there anyway to do this? Thanks Link to comment https://forums.phpfreaks.com/topic/126615-php-automated-gallery/ Share on other sites More sharing options...
F1Fan Posted October 1, 2008 Share Posted October 1, 2008 I would suggest a combination of the PHP scandir() function to find all the files in a folder, and phpThumb (http://phpthumb.sourceforge.net/) to automatically generate thumbnails. Link to comment https://forums.phpfreaks.com/topic/126615-php-automated-gallery/#findComment-654733 Share on other sites More sharing options...
liamloveslearning Posted October 1, 2008 Author Share Posted October 1, 2008 thanks for the reply, is their a way to do it without a database then? he just needs php supported? Link to comment https://forums.phpfreaks.com/topic/126615-php-automated-gallery/#findComment-654734 Share on other sites More sharing options...
F1Fan Posted October 1, 2008 Share Posted October 1, 2008 Yes, scandir() just lists all the files in a given directory on the server, and you can use regular PHP to go through the files and list them. phpThumb will generate thumbnails and watermarks. Neither requires any database. Link to comment https://forums.phpfreaks.com/topic/126615-php-automated-gallery/#findComment-654742 Share on other sites More sharing options...
liamloveslearning Posted October 1, 2008 Author Share Posted October 1, 2008 ahh thanks, sorry still dont understand php all that well, ill have a look at some tuts now, thanks Link to comment https://forums.phpfreaks.com/topic/126615-php-automated-gallery/#findComment-654747 Share on other sites More sharing options...
F1Fan Posted October 1, 2008 Share Posted October 1, 2008 php.net is a great resource. Also, w3schools.com has great tutorials. Here's the scandir() function on php.net: http://us3.php.net/manual/en/function.scandir.php Link to comment https://forums.phpfreaks.com/topic/126615-php-automated-gallery/#findComment-654750 Share on other sites More sharing options...
liamloveslearning Posted October 1, 2008 Author Share Posted October 1, 2008 thanks a lot F1fan, i appreciate it Link to comment https://forums.phpfreaks.com/topic/126615-php-automated-gallery/#findComment-654753 Share on other sites More sharing options...
liamloveslearning Posted October 1, 2008 Author Share Posted October 1, 2008 ive tried googling it but everything seems so complex for such a simple thing, does anybody know a simple code snippet to upload images to a directory on a webhost? Link to comment https://forums.phpfreaks.com/topic/126615-php-automated-gallery/#findComment-654818 Share on other sites More sharing options...
F1Fan Posted October 1, 2008 Share Posted October 1, 2008 Do you want a web page that allows the picture to be uploaded? If that's the case, that will open up all sorts of security issues, and without a DB, it will be a challenge (to say the least). Link to comment https://forums.phpfreaks.com/topic/126615-php-automated-gallery/#findComment-654824 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.