Home Last change: Fri, 04 May 2007 20:16:18 +0200

Menu

Home
About me
Moblog
Quotations
Free Software
->Trouble Ticket System
->WWWPhoto
->Yada Yada Yada Wiki
Sharp Zaurus SL-C860
->PPP with a P800
CNC Foam Cutter
->Control Box
->Mechanics
Radio Controlled Vehicles
->Cardinal mit Querruder
->Cardinal gerader Flügel
->Super Air
->Einlaufstand
->Twinjet
->F5
->Foam Transport Aircraft
->Akkurechner
->Power Peak infinity 2
->HPI Savage brushless
->Monstermarder
Usefull Mini Scripts

Blog 
WWWPhotos


My Fotocommunity Account



Powered by GNU
WWWPhoto



Cyril likes WWWPhoto. He's the lead reviewer of this project.
Check out his website http://www.flyingworld.ch


WWWPhoto is a tag based web photo gallery for PHP5 with GD-Library and MySQL or PostgreSQL. Since release 0.1.0 the navigation on the user view is Ajax driven by using the JSON implementation for PHP from Michal Migurski, Matt Knapp and Brett Stimmerman (http://pear.php.net/pepr/pepr-proposal-show.php?id=198).

Ajax, shorthand for Asynchronous JavaScript and XML, is a web development technique for creating interactive web applications. The intent is to make web pages feel more responsive by exchanging small amounts of data with the server behind the scenes, so that the entire web page does not have to be reloaded each time the user makes a change. This is meant to increase the web page's interactivity, speed, and usability.
From Wikipedia, the free encyclopedia


images/wwwphoto-standard-index-ajax-black.png



Features

- Simple installation
- Thumbnail caching
- Style tunable via frontend, no CSS-hacking needed (but possible)
- Easy XML-Theme definition
- Fire and forget database sync button
- User management for private photos
- PostgreSQL and MySQL support (Proxy Pattern :-)
- No cookies or JavaScript required for visitors



Screenshots

images/wwwphoto-admin-database.png Updating database
images/wwwphoto-admin-options.png Options and Themes
images/wwwphoto-admin-photos.png Administrate photos
images/wwwphoto-standard-index.png A public view
images/wwwphoto-standard-index-ajax.png Navigation with Ajax
images/wwwphoto-admin-index.png Logged in as admin
images/wwwphoto-matrix.png Hercules mochrome effect configured trough options



In Action

Here you can see the current public view of WWWPhoto. Don't hesitate to add new Tags!
http://photo.pburkhalter.net



Downloads

Note: You have to backup your database if you update wwwphoto. There's no guided update procedure at this point.

Update to 0.1.x: release 0.1.x and 0.0.45 have the same database and thumbnail defintion, therefore you don't have to delete your database nor thumbnails for upgrading to 0.1.x.

Update from to 0.1.1 to 0.1.2: in release 0.1.2 it is possible use tabs and open links in a new window.

Latest releases, complete refactoring of index.php due to implementing Ajax

wwwphoto-0.1.5.tar.gz.........MD5SUM: 3e2dc3b81b680f41a0238c8408b724af
wwwphoto-0.1.4.tar.gz.........MD5SUM: 694b05a8f0b0c0dca1feb5c3825cb9f9
wwwphoto-0.1.3.tar.gz.........MD5SUM: 1acbbb0fbb3a3a4db39ba08e6d5f4fbb
wwwphoto-0.1.2.tar.gz.........MD5SUM: 07f35df9abefd3c93a64d0ab66f61239
wwwphoto-0.1.1.tar.gz.........MD5SUM: 6d35ae3286b20b99536cf7338b05b644
wwwphoto-0.1.0.tar.gz.........MD5SUM: e842afbc94aef68c7edf563e08207e34

First Test-Releases

wwwphoto-0.0.45.tar.gz........MD5SUM: 86245a0ca49ce2e0c41eca7c1adc37c8
wwwphoto-0.0.44.tar.gz........MD5SUM: dee90878e36cbc537db5f3c4dd9e38f1
wwwphoto-0.0.43.tar.gz........MD5SUM: 787d5884b253e1555e798885eddb38f3
wwwphoto-0.0.42.tar.gz........MD5SUM: 64fb50557eed361fcc88ad04677b03c2
wwwphoto-0.0.41.tar.gz........MD5SUM: 97967b9c23a7dfbcf43df2eb03e0a4b5
wwwphoto-0.0.40.tar.gz........MD5SUM: c1341c1f3807c1767a12381732384cb6
wwwphoto-0.0.39.tar.gz........MD5SUM: a63e7b19a0ff7c03e9b14f1a5723eaf0
wwwphoto-0.0.38.tar.gz........MD5SUM: 71c0032d924bf1f2163a9de860a501e6
wwwphoto-0.0.37.tar.gz........MD5SUM: ccac9c99f7278d751e2dd3133e988fad
wwwphoto-0.0.36.tar.gz........MD5SUM: 533eec5a60be5341f249143f9029adee
wwwphoto-0.0.35.tar.gz........MD5SUM: 5c72ca864ba7e0814e3d48e6437506e2
wwwphoto-0.0.34.tar.gz........MD5SUM: 4679ac9b4853a02b9bf781d375921d87
wwwphoto-0.0.33.tar.gz........MD5SUM: d3678602aaaa32a47ab6506d7277557a
wwwphoto-0.0.32.tar.gz........MD5SUM: ef84293189a4237f726c18ae4165bf7f
wwwphoto-0.0.31.tar.gz........MD5SUM: 7d9aa39cdc33f3b88fd340fe7ce463a3
wwwphoto-0.0.30.tar.gz........MD5SUM: e0f91eca18a90d9760be95e346fe869e
wwwphoto-0.0.29.tar.gz........MD5SUM: 3e71cb1096e556cbfbd5ec15f2c6df12
wwwphoto-0.0.28.tar.gz........MD5SUM: 3dc63d8c1d24afcaec5d9169685a069c
wwwphoto-0.0.27.tar.gz........MD5SUM: 95383eae5d9ecfdfa10752e574a5edb6

Additional thumbnail creation in C

thumbgen-0.0.2.tar.gz.........MD5SUM: 1ea61c50f659203e9123b78383606988
thumbgen_0.0.2-1_i386.deb....MD5SUM: af437bd6d797790c7799a5645b5495d8

CVS (CVSweb)

$ cvs -d :pserver:anonymous@obiwan.pburkhalter.net:/cvsroot/wwwphoto login
$ cvs -d :pserver:anonymous@obiwan.pburkhalter.net:/cvsroot/wwwphoto co wwwphoto
$ cvs -d :pserver:anonymous@obiwan.pburkhalter.net:/cvsroot/wwwphoto co thumbgen



FAQ

Why it is slow?
WWWphoto has to create the high-quality thumbnails on the first call.
After the thumbnails are created, it is very fast (server side thumbnail caching).


Why I have to activate JavaScript?
JavaScript isn't evil anymore. Welcome to Ajax and WEB 2.0 :-)





Comments
donputscho on 21 April 2006 10:37:47
please use a cluster to make it faster
why do you don't use a cluster to create the tumbnails?
donputscho on 26 April 2006 13:47:41
wwwphoto is realy easy to install
wwwphoto is realy easy to install.
thanks to buck for this great photogallery.
anonymous 13 May 2006 20:34:29
comment
I found this because I was tired of waiting for gallery2 to support tags. This, however, does not use tags correctly, it uses them as categories. See http://en.wikipedia.org/wiki/Folksonomy for the difference between tags and categories. Tags are free form and should not have to be set up apriori. Also the typical way to access the tags on a site is to use /tag/$tagname instead of index.php?tag=$pid. And finally the image view should have the tags it has which link to those tags. If desired the admin should be able to let guest users tag images also.

I am going to work on some of this for my own site, I'll send patches if you want.

Also, the authentication system is strange, is there any reason you didn't use built in password() functions? I assume its because postgres doesn't support this but I'm not sure, I know mysql does.

Finally, it would be really nice if the admin thumbnail creation didn't need to use set_time_limit so that this could run with php safe mode on. This can be fixed by making asynchronous requests to a thumbnail creation page passing 1 image pid at a time. The user page would then loop through all the images that need thumbnails created and the user would get immediate feedback. It would also be able to run as long as it needs, the current set_time_limit(60*60) times out for me very often (I've been importing ~300 images at once).
Buck 14 May 2006 21:12:31
comment
Thank you for your suggests!

I will check your points. Unfortunatley you are right with the tag-issue (particulary with the access way). If you fix this, your patches are of course welcome!

The authentication system is implemented like the unix one:
- http://www.unix.org.ua/orelly/networking/puis/ch08_06.htm
- http://ch2.php.net/manual/en/function.crypt.php

I found no PostgreSQL password()-function, therefore I decided to implement this in a generic way. Maybe it is not necessary to save the salt in an extra column. But then, it must be possible to determine the encryption type in order to get the exact salt-length (the salt is already stored in the hash-column).

I'm not sure if I got you on the safe_mode point. Is the usage of the 'set_time_limit()'-function avoiding a proper use of php safe mode? It would be wise to fork the make_thumbnail()-function to background. This point is interesting.

Btw: I wrote a lousy C-code for generating a wwwphoto-style-thumbnail. Maybe I should post the code on this site.

Please send me an email, so we can discuss the issues in a larger input-field :-)
Robin on 27 May 2006 16:06:57
I have a problem
Hi i have installed your photo gallary after that when i enter the admin id and password nothing happens the screen stays there.help me in this.
Buck 30 May 2006 1:29:17
cookies?
Do you have disabled cookies? There's an open task in the TODO file. Cookies must be enabled (for admin purposes only) until this task is closed.
Fili on 6 September 2006 21:45:24
login
I'm beginner with PHP and I cannot login. Which username and password should I use?
Buck on 7 September 2006 10:27:14
Sad...
The encrypted admin password is stored in your database. You have now some options:

- Create a new password by using the method described in Password::generatePassword($password) and edit the 'account' table of your database manually (dont forget to edit the column named 'salt' too).

or

- Just delete a table (f.e. 'account'). This will force wwwphoto to recreate all your tables. After this, wwwphoto will show you your new admin password. This is also the initial process to set up the admin account. You are then asked to change it by using the corresponding Menu-Tab named 'Users'.
Buck 10 October 2006 14:16:01
Update
I was on an AJAX Workshop last week and found some new motivation. So I did a redesign of the WWWPhoto index page:
http://photo.pburkhalter.net/

It lacks on some functionality at this time, but planned is:
1. accessing tags by photo.pburkhalter.net/mytag
2. allow user to tag photos by viewing them
3. show photo tags on the photo focus view
5. show exif information
4. comment each photo

Maybe I'l getting done soon, so I can release 0.1.0
Jcros on 30 November 2006 22:27:20
install issues
I have installed wwwphoto to a centos 4 server and my ubuntu laptop. It works on my laptop with no issues but the centos 4 server only gives me a blank white page and a text box. Can anyone tell me what I might be missing that may cause this.
salvadhor on 5 February 2007 18:35:16
...
WWWphoto is a great piece of code. But ...
Is there any possibility to make gallery public ? I want to allow anonymous users to view pictures without login in.
Also - exif, comments - it'll be nice to see that in action !
Buck on 5 February 2007 18:57:32
Restrictions
Just remove all users from the photos you want to make public. If you restrict a photo to 'admin', then just 'admin' can see it. Per default, a new photo is restricted to 'admin'.

I'm working on the comments :-)
Also categories, exifs, and watermarks are planned.
(btw. a watermark can already be configured trough options -> shade-on-thumbnails-file)
salvadhor on 5 February 2007 20:43:42
Thanks
Thanks !
I've added two small code corrections ( restrictions for non-logged users to not create/remove tags ), and it's fully usable :)
Buck 5 February 2007 20:46:18
comment
Oh, I should include this in the Option Menu!
Thais on 8 August 2007 9:49:28
public tag removal
I was looking for the patch ov salvadhor that prevents non-logged on users adding/removing tags. Or am i missing a menuoption?
Lord Weirdo 13 October 2007 10:25:36
Postgres7.4.13
Hi Buck,

I'm very impressed by wwwphoto, and so I've downloaded it...
I've had the problem, that my Host has MySQL 4.1, so I've decided to take PostgreSQL.
Is it Possible, that for some reason wwwphoto doesn't work with Postgres 7.4.13?
The error message would be:
Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: could not connect to server: Connection refused Is the server running on host "localhost" and accepting TCP/IP connections on port 5432? in /home/httpd/vhosts/####/httpdocs/####/wwwphoto0.1.5/include/database.php on line 69
Error: cannot connect to database localhost.####wwwphoto (42P12)

It can't be a problem with passwd or something like that... I've checked...

Do you or someone else have a guess?
Thanks
Buck 13 October 2007 15:39:37
Re: Postgres7.4.13
Hi,

I assume you have everything set in config/config.php, right?
Check if you can change 'localhost' to the IP of your Host, to 127.0.0.1 or your domain name. I depends on the configuration file 'pg_hba.conf' of the PostgreSQL server. Maybe Postgres is listening on a different port.
Leonid on 6 November 2007 16:17:28
At the first start
Hi
Parse error: parse error, unexpected ';', expecting '(' in /home/urghanar/public_html/design/wwwphoto/index.php on line 75
ver WWWPhoto 0.1.5
MySQL
Leonid on 20 November 2007 16:55:32
Problem
There is a problem.

Using national languages tags are normally displayed in index.php, but it is impossible to enter them there.
In the administrative interface tags indication as two byte. To enter them there it is impossible also.
Whether is it possible to correct it?
PostgreSQL is used.
woodenpickle on 3 January 2008 21:29:37
Install Error
Hey, I am getting the same error as Leonid just after install..

Parse error: parse error, unexpected ';', expecting '(' in /homepages/33/d184209107/htdocs/gal/index.php on line 75

Was there a solution found to fix it?

Thanks,

Bob

Buck 7 January 2008 3:17:36
comment
Hi, which PHP Version are you using?

Vinay on 18 February 2008 9:10:39
php error
Hey, I am getting the same error as Leonid just after install..

Parse error: parse error, unexpected ';', expecting '(' in /var/www/html/photo/index.php on line 75

I am using PHP 5.2.2

Please suggest any solution ...
Thanks,

Vinay
Bernhard Rode on 1 April 2008 10:37:10
Mehr Entwickler
Hi, nach langem suchen bin ich heute über dein projekt gestolpert.

Endlich mal ein sinnvolles Stückchen Software.

Ich würde gerne einige Sache ausprobieren und falls sie funktionieren wieder einfliessen lassen.

Hast du Pläne ein Sourceforge oder Google Code Projekt aufzustellen, damit man eine zentrale Sourcecode Verwaltung zur Verfügung hat?

Bernhard Rode on 1 April 2008 15:53:08
Sorry for my german post
Sorry for writing in german =)

I just wanted to thank you for wwwphoto and i was asking wheter your thinking of getting the project to Google Code or Sourceforge, so coders like me might join and add futures...
looking forward hearing from you
b.

mail at bernhardrode dot de


Key
Name
EMail
Title
Message
EMail notfication