Quantcast
Channel: CodeProject Latest postings for ASP.NET
Viewing all articles
Browse latest Browse all 3938

unzipping file in host ?

$
0
0
Hi world !
I have this php code for unzipping file in server host.
<?php  
$zip = new ZipArchive;  
$res = $zip->open('6.zip'); 
if ($res === TRUE) {   
$path = pathinfo(realpath('6.zip'), PATHINFO_DIRNAME); 
$zip->extractTo($path); 
$zip->close();  
echo 'ok';  
unlink('UnzipViaPhp.php');  
} else { 
echo 'failed'; 
}  
?> 
So now i wanna ASP.NET code for unzipping the file on server host .(Something like the php one).

Viewing all articles
Browse latest Browse all 3938

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>