Ho un problema nello scompattamento ddei ifle zip.
In locale funziona tutto correttamente ma in remoto no! E non mi da alcun messaggio di errore.
Posto il codice sperando che a qualcuno venga un'idea. VVoVe:

Codice PHP:
$path $_SERVER['DOCUMENT_ROOT'];
echo 
$filezip $path."foto.zip";
$zip zip_open($filezip);
if (
$zip) {
    while (
$zip_entry zip_read($zip)) {
        if (
zip_entry_filesize($zip_entry) > 0) {
                
// str_replace must be used under windows to convert "/" into "\"
                // rimpiazza le barre
            
$complete_path $zippath.str_replace('/','"\\\"',dirname(zip_entry_name($zip_entry)));
             
$complete_name $zippath.str_replace ('/','"\\\"',zip_entry_name($zip_entry));
               if(!
file_exists($complete_path)) { 
                 
$tmp '';
                 foreach(
explode('"\\\"',$complete_path) AS $k) {
                   
$tmp .= $k.'"\\\"';
                   if(!
file_exists($tmp)) {
                 
mkdir($tmp0777); 
                       }
                 
                } 
// end foreach
               
//end if
            
else { echo "esiste il complete path"; }
        if (
zip_entry_open($zip$zip_entry"r")) {
            
$fd fopen($complete_name'w');
            
fwrite($fdzip_entry_read($zip_entryzip_entry_filesize($zip_entry)));        
            
zip_entry_close($zip_entry);
            } 
//end if
            
else { echo "NON è Zip Entry open"; }
          } 
// end if in while
          
else { echo " Filesize <1"; }
          
$j += 1;
           } 
// end while
   
zip_close($zip);
  } 
// end first if
  
else { echo "Non risco ad aprire il file"; }