|
|
|
#! /usr/bin/php
<HTML>
<HEAD>
<TITLE>List of <?php echo "$parm" ?></TITLE>
</HEAD>
<BODY>
<!--- start PHP code ---->
<?php
// *****************************************************//
// //
// Author - Marcus S. Xenakis 5/22/99 //
// marcus@xenakis.net //
// //
// This simple PHP script encodes an HTML document so //
// that its contents may be displayed as a web page. //
// //
// You must supply the HTML document directory/name //
// as a passed parameter. //
// eg. listhtml.php?parm=directory/name.html //
// //
// A single modification is required, you must enter //
// your home directory. //
// //
// *****************************************************//
echo "<b><font face=arial size=+2>List of $parm </font></b>";
// -- Set your home directory here
$home = "/home/your_directory/public_html";
echo "<font face=arial><br>";
print(date("m/d/y h:i"));
echo "<br></font>";
$filename = "$home/$parm";
echo "<hr><br>";
// get contents of a file into a string
$fd = fopen( $filename, "r" );
$contents = fread( $fd, filesize( $filename ) );
// encode HTML for display
$contents = htmlentities($contents);
echo "<pre>$contents</pre>";
fclose( $fd );
?>
<hr><br>
</body>
</html>
|
|
| phpCards - PHP/mySQL postcard script with web based admin to add, edit, and delete cards and categories. Very easy to install. Categories : PHP, Complete Programs, HTML and PHP, MySQL | | | phpWebCam v1.0- Webcam management software - Automatically checks if you're online, and comes with a caption tool capable of handling multiple users. Categories : PHP, Complete Programs, HTML and PHP | | | This is a redirection program which is as good as the come.to v3 url
redirection, complete with admin interface all clients stored in mysql
Categories : PHP, MySQL, Ecommerce, HTML and PHP, Complete Programs | | | PHP mySQL learning example This is a complete program to modify tables
in a mySQL database on a nice and neat way. Categories : PHP, MySQL, Complete Programs, HTML and PHP | | | AITSH Statistics Categories : Complete Programs, Databases, HTML and PHP, Sessions, PHP | | | phpAddQuote v1.2 - UPDATED! Lets users add their own quotes to
your website. You specify how many quotes appear on the page at a
time. Easier install! Categories : HTML and PHP, Complete Programs, PHP, Databases, Personalization and Membership | | | navbar.php3 - Dynamic hyperlinked navigation bars Categories : HTML and PHP, Arrays, PHP, Complete Programs | | | DDN FFA Network Script Categories : PHP, MySQL, Complete Programs, HTML and PHP, Databases | | | Handle multiple file upload Categories : Complete Programs, Filesystem, PHP, HTML and PHP | | | Directory viewer, customize how you display the file structure, easy to
understand. Found out about PHP 3 days ago, and this is my first prog. Categories : HTML and PHP, Complete Programs, Directories, Filesystem, PHP | | | phpEasyMail: An easy way to send data from HTML-forms via EMail. Categories : Email, HTML and PHP, Complete Programs, PHP | | | This program will take data from a user via a web based form, validate it, show it
to the user for re-validation, and finally insert it into the database. Plenty of
sanity checking on the fields in the form.
Categories : MySQL, HTML and PHP, PHP, Complete Programs, Databases | | | PHP3: Formmail. Just a cgi formmail, but than in PHP. It is easy to use! Categories : HTML and PHP, Email, PHP, Perl, HTML and PHP | | | This script allows people to add their favorite quotes to your website. This
could easily be modified to be a guestbook script or comment page script. Categories : PHP, Complete Programs, HTML and PHP, Misc | | | Validator 98 - a PHP-script to generate form-validation-code in JavaScript. Categories : Complete Programs, Java Script, PHP, HTML and PHP | |
|
|
|