I'm maintainer of ubuntuclub.com's repository(files.ubuntuclub.com/repository) and I have wrote listpackage.php(http://files.ubuntuclub.com/repository/listpackage.php) that list all files in the directory.
Now I have wrote a newer version of listpackage.php that use dpkg -l intensively(it ran dpkg -l one time per package file and i have about 20 packages). I ran it because I want to fetch some information about that package.
Here is its code:
Sorry about that, I don't like to create newlines and the forum software don't replace space to . You also can look at its screenshot in links I provided on the top of script.
(Tested in nanoweb 2.2.8 php 5.2.1 on Ubuntu 7.04 with 2.6.20-16-generic kernel)
Can I use this?
PS. Sorry for my english.
PS2. You can use this code in MIT license.