Closed Thread
Results 1 to 5 of 5

Thread: How Make compression file

  1. #1
    bakso is offline Newbie
    Join Date
    Oct 2007
    Posts
    2
    Rep Power
    0

    How Make compression file

    Hello all
    I'm newbie here

    i have a trouble to download some file, coz php didn't consent to download them together.
    the way out is make them to gzip/zip file before downloading them.

    any example?


    thank for any suggest n helping

    */I'm Indonesia
    sorry for my poor english

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    v0id is offline Retired
    Join Date
    Apr 2007
    Posts
    2,937
    Blog Entries
    3
    Rep Power
    42
    Take a look at the reference.

  4. #3
    bakso is offline Newbie
    Join Date
    Oct 2007
    Posts
    2
    Rep Power
    0
    @void
    thanks for ur reply, and i try to understand all php.net/zip guide.
    But i still confused.

    Here is script to check the file
    [HIGHLIGHT="PHP"]
    <?
    include('Connections/ConnReff.php');
    if ($_POST['check'])
    {
    $box=$_POST['list'];
    $box_count=count($box);
    if($box <=1)
    {
    echo "<font face='verdana' size='2' color='red'><b>Error : Please check Data</b></font>";
    }

    else
    {

    foreach ($box as $kompress)
    {
    //HERE IS SCRIPT BLOCK TO MAKE ZIP FILE, BUT I CONFUSED WITH THAT


    }
    }
    }
    ?>


    <? include('Connections/ConnReff.php');
    mysql_select_db($database_Conn, $ConnReff);
    $query_RsList = "SELECT * FROM upload";
    $RsList = mysql_query($query_RsList, $ConnReff) or die(mysql_error());
    $totalRows_RsList = mysql_num_rows($RsList);
    $i=$totalRows_RsList;
    ?>

    <? if ($i != 0)
    { ?>

    <form name="form1" method="post" action="">
    <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#CCCCCC">
    <tr>
    <td width="3%" height="25"></td>
    <td width="3%">No</td>
    <td colspan="2">Title</td>
    </tr>
    <?
    $i=1;
    while($row_RsList = mysql_fetch_array($RsList))
    {
    ?>
    <tr bgcolor="#FFFFFF">
    <td height="24"><input type="checkbox" name="list[]" value="<? echo $row_RsList["kode_file"]; ?>"></td>
    <td height="24">
    <? echo $i;
    echo ".";
    ?>
    </td>
    <td width="94%"><? echo $row_RsList['title']; ?></a></td>
    </tr>
    <?
    $i++;
    }

    ?>
    </table>
    <table>
    <tr>
    <td><input type="submit" name="check" value="Compress"> </td>
    </tr>
    </table>
    </form>

    <?
    }
    elseif ($i == 0)
    {
    ?>
    <table width="100%">
    <tr>
    <td height="23" bgcolor="#F5F5F5"><div align="center">EMPTY NO DATA </div></td>
    </tr>
    </table>
    <?php
    }
    mysql_free_result($RsList);
    ?>[/HIGHLIGHT]
    Last edited by Jordan; 10-08-2007 at 12:42 PM.

  5. #4
    Patrick is offline Programmer
    Join Date
    Sep 2007
    Posts
    101
    Rep Power
    0
    Is this script running somewhere. Can I see some demo because I can't understand how this script is working.

    Waiting to hear something.

    Thanks a lot.

  6. #5
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20
    Quote Originally Posted by Patrick View Post
    Is this script running somewhere. Can I see some demo because I can't understand how this script is working.

    Waiting to hear something.

    Thanks a lot.
    It isn't working...

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Thought Experiment: File Compression
    By dargueta in forum General Programming
    Replies: 6
    Last Post: 09-07-2009, 08:28 PM
  2. Replies: 3
    Last Post: 04-19-2009, 09:38 AM
  3. how to make exe file with php
    By saint_xaver in forum PHP Development
    Replies: 6
    Last Post: 03-01-2009, 12:53 PM
  4. How do i make a jar file?
    By poter in forum Java Help
    Replies: 2
    Last Post: 10-29-2008, 04:05 AM
  5. How do i make a jar file?
    By Blmaster in forum Java Help
    Replies: 6
    Last Post: 08-16-2008, 03:55 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts