I am uploading a zipfile and i want to copy the file to some other directory i tried like this.
Here is the html code:
Expand|Select|Wrap|Line Numbers
- <html>
- <body>
- <form method='POST' enctype='multipart/form-data' action='/cgi-bin/zip.pl'>
- File to upload: <input type=file name=upfile><br>
- Notes about the file: <input type=text name=note><br>
- <br>
- <input type=submit value=Press> to upload the file!
- </form>
- </body>
- </html>
Expand|Select|Wrap|Line Numbers
- $param=param("upfile");
- system("cp $param /var/www/cgi-bin/Other/");
How can i copy the file and unzip the directory?
I don't want to use any modules!!!
Regards
Archana