View Single Post
ישן 27-03-08, 17:45   # 3
ShLooK
חבר בקהילה
 
מיני פרופיל
תאריך הצטרפות: Dec 2005
גיל: 32
הודעות: 323

ShLooK לא מחובר  

PHP קוד:
<?php
$file 
$_GET['f'];
$file explode("."$file);
if(
file_exists("uploads/{$file[0]}.{$file[1]}")) {
    
header("Content-type: application/{$file[1]}");
    
header("Content-Disposition: attachment; filename={$file[0]}.{$file[1]}");
    
readfile("{$file[0]}.{$file[1]}");
}
else {
    echo 
"file doesn't exists";
}
?>
תגיד לי אם זה עובד...
  Reply With Quote