error_reporting(0); $filename="adi_and_berber.gif"; $path=""; If(!IsSet($command)) $command == 0; If($command == 0) { echo""; } If($command == 1) { header("Content-Disposition: attachment; filename=$filename"); header("Content-Type: application/octet-stream"); header("Content-Length: ".filesize("$path/$filename")); header("Pragma: no-cache"); header("Expires: 0"); $fp=fopen("$path/$filename","r"); print fread($fp, filesize("$path/$filename")); fclose($fp); exit(); }