Converting text files into a navigable collection with php

Say you have a collection of text files that you want to be accessible over the internet, but dont want to convert each one, add navigation etc…
This is where txt2dir comes in, this is a small php script I made that can take that collection of text files and convert them to html on demand including navigation and an index!

txt2dir requires that txt2html be installed and working, along with shell_exec functionality enabled in php (might be a problem on shared hosting).

View a demo

Update 30/12/2008

Ive made some modifications to the script, and uploaded a new version.
Also i’ve found that txt2html can now be installed in ubuntu/debian through apt/synaptic.
The demo is working again.

Files

Bookmark the permalink.

Leave a Reply

Your email address will not be published.