Upload a Zip/RAR/Exe Files in php

  • Madzmar
  • Newbie
  • Newbie
  • User avatar
  • Posts: 8

Post 3+ Months Ago

Hi good day could someone plss help me solve my problem... i been cracking my mind on how to solve this for days now... i like to upload a zip file from my computer to my website... but the problem is I cannot detect the size type or name of my zip File... I used the code below to upload a file and it works find in JPEG and other image and text file but not in zip, rar or exe files.... i dont know how to do it and what code should be use to read the file.. could someone please guide me in the step by step process on how to read and upload a zip file... providing a source code would really help a lot...

Below is the code im using to check for the details of the uploaded files...
PHP Code: [ Select ]
/* Assuming the name of my submit button is save and my file button is upload */
<?php
   if(isset($_POST['save'])){
      echo $_FILE['upload']['name'] . "<br/>";
      echo $_FILE['upload']['type'] . "<br/>";
      echo $_FILE['upload']['size'] . "<br/>";
      echo $_FILE['upload']['tmp_name'] . "<br/>";
 
   }
 
 
?>
  1. /* Assuming the name of my submit button is save and my file button is upload */
  2. <?php
  3.    if(isset($_POST['save'])){
  4.       echo $_FILE['upload']['name'] . "<br/>";
  5.       echo $_FILE['upload']['type'] . "<br/>";
  6.       echo $_FILE['upload']['size'] . "<br/>";
  7.       echo $_FILE['upload']['tmp_name'] . "<br/>";
  8.  
  9.    }
  10.  
  11.  
  12. ?>


Please help me i would really appreciate any help thanks
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 107 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.