Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
if ( isset($_GET['file']) && $_GET['file'] != '' )
$get_param = 'file';
header("Content-Type: application/octet-stream");
header("content-disposition: attachment; filename=\"{$_GET[$get_param]}\"");
else { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="">
<title>Download an Empty File</title>
<p>Use this form to download an empty file of the name you specify. This is useful for when you are unable to name file in Windows starting with a dot and don't want to get out the command prompt to do it manually.</p>
<form method="get" action="./f.php">
<label for="file">Filename:</label> <input type="text" name="file" id="file" /> <input type="submit" value="Download" />
<?php } ?>