PDF/DOC/XLS/IMG Viewer, tweaked by -V-O-Y-A-G-E-R-

Uses lighttpd web server to let you view many filetypes locally on your iPhone, straight from your iPhone's Safari. Scroll down for more info/screenies.

Files in /private/var/root/Sites on your iPhone will be viewable by going to 127.0.0.1 in Safari. You can put any files you need in there by using any of the many methods to transfer files to your iPhone, like WinSCP, CyberDuck, Terminal, aFPD - whatever you prefer.

Requires lighttpd and PHP (remember to clear your Installer queue if you tried to install this package before those).

NOTE: After you've finished the PHP installation, you'll see a message "Please add /opt/iphone/bin/ to your $PATH". Ignore it, it's all already set.

Forum Thread

CREDITS
===============================
-V-O-Y-A-G-E-R-, kane.lai, DeathPrawn, DaveiPhone and cazlar

CHANGELOG OF KANE LAI'S TWEAKS
===============================
Version 1.31 (Apr 3, 2008)
+ added icon for ".jpeg" files (in addition to ".jpg" files)
* added a space between icon and filename
* ignored the case of the file extension (".JpG", ".JPG", ".jpg" are the same)

Version 1.3 (Mar 31, 2008)
+ added icon for txt files
* increased thumbnail size and removed the filenames for photos (coz filenames are generally not important for photos)
* fixed a minor bug about hyperlinks
* renamed apple-touch-icon.png to favicon.png

Version 1.2 (Mar 30, 2008)
+ icons support - for PDF/DOC/XLS/folder, icons are shown; for JPG/GIF/PNG, picture preview are shown.

Version 1.1 (Mar 27, 2008)
* the original script fails to enter directory/file which contains the "#" character in directory name or filename
* when the length of file/dir is too long, the ">" at the right of the line get overlapped. now it's fixed.
+ the original script only shows 127.0.0.1 as the root folder name. i've added a constant in the script that allows the user to customize the name. i preset it as "Library"
+ web clip icon support. just put an icon named "apple-touch-icon.png" in the ".dirlist" folder (or use the one i attached). and try to add the web page to the home screen
+ the page auto scroll to hide the address bar of safari (only if the length of the list of files reached a full screen of safari)