Hello friends, i am new here, i need help, i am making script for users who will upload zip file and the script will look for index.html inside zip, if it success to find it, it should echo all content of that index.html as a web page, here is my code:
Code:
Please tell me what should i do?
Code:
Code:
<?
$f = "c:/PHPServer/template.zip";
$zip = zip_open($f);
if($zip)
{
while($read = zip_read($zip))
{
$file = zip_entry_name($read);
if($file == "index.html")
{
$open=fopen($f.zip_entry_name($read['index.html']),"r+");
while(!feof($open))
{
echo fgetc($open);
}
}
}
}
?>
Comment