Glad you got it working.
What I find most useful about the PHP script is it gives summary information in the description and tags the epub based on category (although if all you have are Harry Potter fanfics, that might be a bit redundant). That makes it really convenient when you're browsing the ebooks in Stanza.
Attached is a screenshot from Stanza (using Calibre's built-in server).