\n"); echo("PHP Download\n\n"); echo("\n\n"); echo("

PHP Download



\n\n"); } function request_html() { echo("
\n"); echo("
\n"); echo("Select File Format :\n"); echo("\n"); echo("

\n"); echo("\n"); echo("
\n"); echo("
\n\n"); } function response_html($filename) { $url = "http://www.io.com/~terrence/php/download/" . $filename; header("Status: 302 Moved"); header("Location: $url"); } function footer_html() { echo("
\n"); echo("\n"); echo("Program Source
\n"); echo("\n"); } # main program # if no parameter, print request html # else print response html if (!$filename) { header_html(); request_html(); footer_html(); } else { response_html($filename); } ?>