im still fairly new to php and trying to find the best way to build a photo gallery, is this something php is good at doing or should i be looking to use a different language?
i have thousands of photos and im finding it progressly harder to find my photos as they are just stored in folders on my network, i'd ideally like to be able to bulk load/process the photos using a recommended file structure linked with a database so i can then put keyword tags etc on each photo allowing me to find things easier.
once this has been done i would like to then publish part of my collection to a website (not yet built but with its own database) , is there a quick and easy way to sync the the two databases and files?? would i be looking to use something along the lines of XML? I would potientially like to allow others to upload photos to the website and if i liked them it would sync with my offline network collection ?
decent gallery possible in php?
Moderator: General Moderators
Re: decent gallery possible in php?
Others with more experience in the exact operations you described may have other opinions, but here are my thoughts:
PHP is a language designed for creating dynamic WEB sites, so it is generally not suitable for applications not associated with web page creation. It is normally interpreted by a web server, like Apache, so if you're not serving web pages, PHP is not an appropriate language to use.
If you want to design the whole system from the beginning to be a web application, then PHP is the language of choice (Microsoft programmers will disagree, no doubt). That's the way I would do it. Why design 2 systems that you then have to worry about synchronizing, when it logically is all one system?
PHP is a language designed for creating dynamic WEB sites, so it is generally not suitable for applications not associated with web page creation. It is normally interpreted by a web server, like Apache, so if you're not serving web pages, PHP is not an appropriate language to use.
If you want to design the whole system from the beginning to be a web application, then PHP is the language of choice (Microsoft programmers will disagree, no doubt). That's the way I would do it. Why design 2 systems that you then have to worry about synchronizing, when it logically is all one system?
- inghamn
- Forum Contributor
- Posts: 174
- Joined: Mon Apr 16, 2007 10:33 am
- Location: Bloomington, IN, USA
Re: decent gallery possible in php?
Creating a photo album that is still usuable after thousands of photos has been my pet project for 10 years now. I originally started in Perl and javascript, before switching to PHP (version 3 way back when). PHP 5.3 makes it ridiculously easy to create your own custom web-based photo album.
The real challenge is working out what you want the system to do in order to make the photo organization easy and usable. The big step I think is getting away from trying to create a system of albums that you put photos into. With thousands of photos, you want to treat them as a sea of photos (with meta-data attached) that you can search and filter down to a set that you actually want to look at.
http://sourceforge.net/projects/photodatabase/
The real challenge is working out what you want the system to do in order to make the photo organization easy and usable. The big step I think is getting away from trying to create a system of albums that you put photos into. With thousands of photos, you want to treat them as a sea of photos (with meta-data attached) that you can search and filter down to a set that you actually want to look at.
http://sourceforge.net/projects/photodatabase/
Re: decent gallery possible in php?
Picassa might be of interest - it's not a PHP app, but it does everything you need.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: decent gallery possible in php?
yes thats what i wanted to do, i wanted to upload/edit/index them which when processed would just simply get a PK ID and assocaited info and keywords etc offline its just getting stupid i cant find anything.....inghamn wrote:Creating a photo album that is still usuable after thousands of photos has been my pet project for 10 years now. I originally started in Perl and javascript, before switching to PHP (version 3 way back when). PHP 5.3 makes it ridiculously easy to create your own custom web-based photo album.
The real challenge is working out what you want the system to do in order to make the photo organization easy and usable. The big step I think is getting away from trying to create a system of albums that you put photos into. With thousands of photos, you want to treat them as a sea of photos (with meta-data attached) that you can search and filter down to a set that you actually want to look at.
http://sourceforge.net/projects/photodatabase/
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: decent gallery possible in php?
You can check two of the most popular for inspiration:
http://gallery.menalto.com/
http://coppermine-gallery.net/
http://gallery.menalto.com/
http://coppermine-gallery.net/
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.