Script to Download jar files as zip ....!!!plz help

Started on the old forum in October 2010 · view the original in the archive · old links redirect here

7 replies · 739 views · started 16 years ago · 1 min read

6 participants
Donostex Junior · 17 posts #1

Pls dude, i am a newbie in coding....i am working on an auto index download script. I want the script for users to be able to download jar files as zip !....plz if u have that script, kindly drop it.....thx

i want to be a talented php coder 🙂

akela Senior · 305 posts #2

auto index script already available so search in forum. for jar file download, define MIME TYPE

External image (may be gone) Unlimited Web Hosting service. 99.99 $ uptime Guarantee. Free Trail Available for 30 days. Free Script | Null script| Php | Unlimited Web Hosting| Unlimited Space | Unlimited Bandwidth| Unlimited Domain| $3/m Unlimited Space | Unlimited Bandwidth|5 Domain| $2/m 10 GB Space | 100 GB Bandwidth| 1 Domain| $1/m FFMPEG| FREE SCRIPT | FREE SITE BUILDER |LIVE SUPPORT [Timewebhosting.com On Web Hosting| Unlimited Web Hosting](http://www…

ANGELUS Junior · 17 posts #3
<?php

$zip = new ZipArchive();

if ($zip->open('filename.zip', ZIPARCHIVE::CREATE) !== TRUE) {
     die ("could not open archive");
}

$fileList = Array(
     'yourfile.jar'
);

foreach ($fileList as $f) {
     $zip->addFile($f) or die ("ERROR: could not add file: $f");
}

$zip->close();
echo "Archive created succesfully.";

?>

wow, ive been missing this site for more than 2 years lol

Donostex Junior · 17 posts #4

HOW DO I DEFINE MY MIME TYPE@videodesihot

Added after 2 minutes:

Thanks dude.....

Thanks angel

i want to be a talented php coder 🙂

akela Senior · 305 posts #6

Donostex wrote: HOW DO I DEFINE MY MIME TYPE@videodesihot

Added after 2 minutes:

Thanks dude.....

Thanks angel

Coding Talk: sis and other mobile content MIME types

External image (may be gone) Unlimited Web Hosting service. 99.99 $ uptime Guarantee. Free Trail Available for 30 days. Free Script | Null script| Php | Unlimited Web Hosting| Unlimited Space | Unlimited Bandwidth| Unlimited Domain| $3/m Unlimited Space | Unlimited Bandwidth|5 Domain| $2/m 10 GB Space | 100 GB Bandwidth| 1 Domain| $1/m FFMPEG| FREE SCRIPT | FREE SITE BUILDER |LIVE SUPPORT [Timewebhosting.com On Web Hosting| Unlimited Web Hosting](http://www…

triplee084 Junior · 30 posts #7

...Angelus dat wont work... Jor oh! ...i will post somethin dat will wrk 4 u ere

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close