PHPixDir
A copy of phpixdir can be found here. An example
web site can be found here.
PHPixDir, a variant of PHPix2.1
PHPixDir is a program to automatically generate web photo albums. It is a
fork of PHPix2.1pre1. I didn't really
intend it to be a fork, but I ended up making so many changes (and probably
breaking functionality I didnt care about too), that it seems like a good
idea. Of course the PHPix2 people are quite welcome to use this code in their
code anyway they please - it's only right, as I wouldn't have been able to
do any of this without their hard work. It is also a right granted them by
the GPL.
What is the difference between PHPixDir and PHPix2.1?
PHPixdir uses a fake directory structure in its URLs. This is because:
- I hate messy URLs full of "?blah=foo" statements.
- PHPix2.1 had stuff in the URL that was obviously redundant.
- The URLs were too long.
and most importantly:
- Because of the structure used, you can make a local copy of a PHPixDir
site and it will work perfectly.
How to make a local copy of a PHPixDir website
I use a program called "wget", available for just about any OS. For example,
the command:
wget -mk -np www.mythral.org/~marvin/photos/
will make a local copy of marvin's PHPixDir website.
Why I did this
Well, for the reasons given above, and because I have family with slow internet
connections who live out in the sticks. With PHPixDir, I can just throw all
my pictures in a a few directories, use wget to suck down the website so
generated and write it to a CD. I can ship off the occasional CD to relatives
and everyone is happy.
Errors and Bugs
I am not a veteran web programmer. A few days ago I didn't know any PHP and
barely any HTML, so it is possible that there may be bugs or security issues
in this code. Please don't use it if this worries you. Better yet, please
find all the bugs and other problems and send me bug reports or patches.
Back to home.