This is the Soapbox Crypt. Fresh content can be found at Patrick's Soapbox.

Me on PHP

a iBooks screenshot.

I also updated both pftqgbase.class and the photogallery script to handle this kind of url. So, now instead of

going http://photos.pftqg.com/random?img=4, I say http://photos.pftqg.com/random/(4)/. Incidentally if you try and use ?img=4

it just redirects itself to /(4)/ to keep my old links sanity-friendly.

Of course, by dropping the use of query strings I've also made it so that I can also just use http://pftqg.com/photos/random/(4)/ - and the redirect in place will send it on correctly. I've probably also just increased my reliance on Apache 1.3.x, and made migrating to 2.0 even harder. But meh. I have no use for 2.0 as of yet, and don't (yet) have any desire to risk moving it all. Not that it'd be that hard, but right now it runs off one directory, and just works. It won't be as simple under 2.0.

If you are feeling particularly, um, brave, have a look at the source for the photogallery 'page' handler and the pftqgbase class (for xml files).

For those that are really brave, the following other pages may be of interest: pftqgbase_noxml class the plain 'page' handler

How it all works, I have an idea, and I did write all the above code (hence copyright, use restrictions etc. apply. However, as long as you let me know, I probably won't mind you copying some of the above code content.)

FYI: The root of the web is included in the PHP include_path setting, which is how lib/pftqgbase.class.php etc. are used as such.

About this entry

You’re currently reading “Me on PHP,” an entry on Patrick’s Soapbox.

Published: May 13, 2003 12:05 PM.

Filed in My Site .

self.DoubleShot()

more at ma.gnolia.
Feedsubscribe to the doubleshot feed.

Recently on Flickr