\n"); /* * * Now lets read it and see what's in it... * */ if( is_readable($tmpFile) ){ $fileHandle = fopen($tmpFile, "r"); $fileLength = filesize($tmpFile); $contents = fread($fileHandle, $fileLength ); fclose($fileHandle); print("$contents
\n"); print("$tmpFile is $fileLength bytes long.
\n"); } else print("Couldn't read $tmpFile
\n"); if( file_exists($tmpFile) == false ){ print("$tmpFile doesn't exist, so we can't delete it.
\n"); } else if( is_writeable($tmpFile) ){ unlink($tmpFile); } else print("Couldn't delete $tmpFile
\n"); ?>