These are just some simple scripts that do simple things. Like most of the things on this planet, there are bits an pieces from other peoples ideas and work. If anything on this page looks like something you wrote, please let me know and I'll take it down. More will come with time.

<? ini_set("allow_url_fopen", "1");
$handle = fopen("", "rb");
$contents = '';
while (!feof($handle)) {
$contents .= fread($handle, 8192);
echo $contents;

More php... What this does is it will override some basic php.ini settings (the top line) then it reads in the file as a string. Then it echos the string. The nice part is then you can use a replace function on the string to remove or change bits and pieces.

function directory($result) {
while ($file = readdir($handle)) {
if ($file == "." || $file == "big" || is_file("$file")) { }
else { print "<a href=$file>$file</a><br>\n"; }
return $result;
echo directory($result);


In php. Stick it on a page and you'll get a simple directory listing. This is used here.

function images($result) {
while ($file = readdir($hhandle)) {
if ($file == "." || $file == "..") { }
elseif (strstr($file, ".gif") || strstr($file, ".jpg")) { print "<a href=big/".$file." target=new><img src=".$file." border=1 hspace=11 vspace=11></a> "; }
return $result;
echo images($result);

I use this to display all the images in a directory and make them a link to a larger image, with the same name in a directory called "big". This is also used here.

<a href="images.html" onMouseOver=huh.src="home_img.gif"> <img src="clear.gif" name="huh" width="250" height="315"></a>

The easiest mouseover I've ever found. I use it on my home page.
More coming soon... probably.