buon giorno a tutti , ho guardato nel sito ufficiale di php in più ho dato un occhiata al files di phpMyAdmin export.php , dovrebbe essere corretta , ma non mi funziona perche ? dove toppo ?

Codice PHP:

        
function _out$dump )
        {
         if(empty(
$this->filename) ){
         
$this->filename DATABASE_NAME .".".date("d")."_".date("M")."_".date("Y")."_".date("H")."_".date("i")."_".date("s");
         }else{
         
$this->filename $filename .".".date("d")."_".date("M")."_".date("Y")."_".date("H")."_".date("i")."_".date("s");
         } 
         if(
$this->compress  && extension_loaded("zlib")) {
         
$this->ext "sql.gz";
         
$this->content_encoding 'x-gzip';
         
$this->mime_type 'application/x-gzip';
         }else{
         
$this->ext "sql";
         
$this->content_encoding '';
         
$this->mime_type 'text/x-sql';
         }
          if(
$this->save_on_server) {
          
$dir "./includes/";
          
$files "Backup";
          if(!
is_dir($dir.$files))
          {
             
mkdir($dir $files 0777);  
             
chmod($dir $files 0777); 
          }
          
$handle fopen($dir $files ."/" $this->filename .'.'$this->ext"wb" );
          if(
$handle){
             if(
$this->compress){
                    
$gzbackupData "\x1f\x8b\x08\x00\x00\x00\x00\x00" substr(gzcompress($dump9), 0, -) . pack('V'crc32($dump)) . pack('V'strlen($dump));
                    
fwrite$handle$gzbackupData );
             }else{
                    
fwrite($handle$dump );
             }
                    
fclose($handle);
          }          
          }
            
             
ob_start();    
             if(
$this->compress && extension_loaded("zlib"))
             {  
             
$this->perform_backup($this->filename,$this->ext$this->content_encoding ,$this->mime_type);
             
$dump ob_get_contents();
                    
$gzbackupData "\x1f\x8b\x08\x00\x00\x00\x00\x00" substr(gzcompress($dump9), 0, -) . pack('V'crc32($dump)) . pack('V'strlen($dump));
                    echo 
$gzbackupData;
             }else{  
             
$this->perform_backup($this->filename,$this->ext$this->content_encoding ,$this->mime_type);
             
$dump ob_get_contents();
             echo 
$dump;
             }
ob_end_clean();
        }

        function 
perform_backup($filename $ext $content_encoding $mime_type)
        {
        if (!empty(
$content_encoding)) {
        
header('Content-Encoding: ' $content_encoding);
        }
        
header('Content-Type: ' $mime_type);
        
header('Expires: ' gmdate('D, d M Y H:i:s') . ' GMT');
        
// lem9 & loic1: IE need specific headers
        
if ($this->_get_browser_type() == 'IE') {
        
header('Content-Disposition: inline;  filename="' $filename '.' $ext '"');
        
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
        
header('Pragma: public');
        } else {
        
header('Content-Disposition: attachment;  filename="' $filename '.' $ext '"');
        
header('Pragma: no-cache');
        }
        
readfile('"' $filename '.' $ext '"');
        }