This script will auto link any text file in table manners in selected directory, and auto link them. Great for website like Olga, lyrics and tabs
By : jiwang
You will need two files linker.php and disp.php The reason i created this script is that i have over 300 tabs and lyrics in text format. It would be silly and time consuming to link it all. Try it out.
linker.php ( this page is to autolink textfiles in your directory) ------------- <table border="1" bordercolor="#000000" align="center" WIDTH="75%"><tr bgcolor="#999999"><td><font color="#000000">Name</font></td><td><font color="#000000">Size</font></td></tr>
disp.php (this page is to display the textfiles in tableized manner) ----------------- <?php
$text_dir="/usr/home/jiwang/public_html/test"; //the file path of your textfile $text_url="http://www.jiwang.org/test"; //this is the url of your directory
------------------------ YOu can include linker.php in disp.php to include the menu. YOu can also call the text file manually http://yourdomain.com/text/disp.php?i=file.txt
Good luck!
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.