View Single Post
ישן 15-05-17, 17:36   # 1
pcnet
חבר בקהילה
 
pcnet's Avatar
 
מיני פרופיל
תאריך הצטרפות: Apr 2014
מיקום: בני ברק
הודעות: 51

pcnet לא מחובר  

מנסה לבצע הורדה של גיבוי sql ולא מצליח

PHP קוד:
if(isset($_POST['save'])) {
$uniq substrmd5(rand()), 06);    
$backup_filee $options['db_to_backup']."backup-_".$uniq."_".date("H:i_d-m-Y").".sql";        
Header("Content-type: application/octet-stream");
Header("Content-Disposition: attachment; filename=$backup_filee");
header("Content-Transfer-Encoding: binary");
echo 
'הקובץ $backup_filee חולץ, ומבצע הורדה';
}

    <
form role="form" action="" method="POST">
     <
button type="submit" name="save" class="btn btn-info btn-xs">הורדה</button>                  
    </
form
תודה לעוזרים
  Reply With Quote