greetings, fellow internet!

welcome to digitalgangster.com, the coolest community for people who hack the gibson and make bajillions of dollars off of online marketing. please click here to register an account (it's free) and join in on a plethora of discussions with the internet elite.

ASGPHE,
ytcracker, original digital gangster
follow me on twitter
fan me on facebook
Results 1 to 22 of 22

Thread: PHP zipper

  1. #1
    The Don TrainReq's Avatar
    Join Date
    Dec 2006
    Location
    Internet
    Posts
    4,033

    Default PHP zipper

    so for tunetunnel I want to add a feature where users can pick songs and put them in *theirusername*.zip folder

    Basically the user will click a thing saying *add to zip* which will call upon zip.php?file=http://www.site.com/file.mp3 which will add to an archive called $_SESSION[username].zip (so *theirusername*.zip) and they can download it by going to tunetunnel.com/archives/*username*.zip , and they can add and remove stuff from their little zip archive. And all the zipping will be done server side.

    If someone could write me up something like this, i don't have much money to give out, but i will advertise something for you on my site or give you credit (or both).

  2. #2
    What will i master next?
    Join Date
    Sep 2007
    Posts
    7,996

    Default

    see josh, this is how you get props man, keep this shit up and you could be sitting on stacks by 25
    Quote Originally Posted by hijinks View Post
    You are data, are you not physical?

  3. #3

    Join Date
    May 2008
    Location
    in and out of the philadelph
    Posts
    1,585

    Default

    what a fucking sick idea


  4. #4

    Join Date
    Dec 2008
    Location
    INTERNET, CA
    Posts
    277

    Default

    third


  5. #5
    Zain's Avatar
    Join Date
    May 2005
    Location
    metropolitan detroit
    Posts
    24,253
    Quote Originally Posted by ganjanaut View Post
    someone is gonna quote that and put it in his sig

  6. #6
    The Don TrainReq's Avatar
    Join Date
    Dec 2006
    Location
    Internet
    Posts
    4,033

    Default

    Quote Originally Posted by wild View Post
    what a fucking sick idea
    Sick idea , just need to know how to do it. I will be the only ripper site with this option if i get it done. Right now i am the only music dl site with a myspace mp3 ripper.

    My business partner (elul21) suggested this to me. elul21 is marketing and idea brains behind this project while i am some of the ideas as well as the programmer behind this project

  7. #7
    The Don TrainReq's Avatar
    Join Date
    Dec 2006
    Location
    Internet
    Posts
    4,033

    Default

    Quote Originally Posted by Zain View Post
    That code is just hard to read an comprehend to know how to get it to work for me.

  8. #8
    dg dick rider mattersfool's Avatar
    Join Date
    Aug 2008
    Location
    fo tew five
    Posts
    10,581

    Default

    Quote Originally Posted by boz View Post
    see josh, this is how you get props man, keep this shit up and you could be sitting on stacks by 25
    Quote Originally Posted by ChewY View Post
    srsly, don't compare yourself to me, you'll never be half of what i am at my worst.

  9. #9
    trainreq groupie
    Join Date
    Oct 2008
    Posts
    476

    Default

    http://www.web-development-blog.com/...rs-on-the-fly/

    here is an easy class extension

    and how to select the items

    <input type="checkbox" name="sel_file[]" value="yourfile.ext" />

    after the form is submitted loop trough this array:

    foreach ($_POST['sel_file']) as $key => $val) {
    // the sip code here
    }

  10. #10
    Zain's Avatar
    Join Date
    May 2005
    Location
    metropolitan detroit
    Posts
    24,253

    Default

    Quote Originally Posted by TrainReq View Post
    That code is just hard to read an comprehend to know how to get it to work for me.
    just put it in an include and you can use functions add_dir and add_file to create a zip

    here's a lil example http://www.devco.net/archives/2005/0...s_with_php.php
    Quote Originally Posted by ganjanaut View Post
    someone is gonna quote that and put it in his sig

  11. #11
    Zain's Avatar
    Join Date
    May 2005
    Location
    metropolitan detroit
    Posts
    24,253

    Default

    Quote Originally Posted by trainReq_haxed View Post
    http://www.web-development-blog.com/...rs-on-the-fly/

    here is an easy class extension

    and how to select the items
    that one looks good too
    Quote Originally Posted by ganjanaut View Post
    someone is gonna quote that and put it in his sig

  12. #12
    My only fear is the unknown. david blaine's Avatar
    Join Date
    May 2005
    Posts
    8,370

    Default

    tr if you don't get zain's script working or if it isn't what you desire, hit me up and I'll code a script for you for some money if your box = linux

  13. #13
    the game belong to me rmk's Avatar
    Join Date
    Feb 2005
    Location
    san diego
    Posts
    22,853

    Default

    just use php to drop the files in their dr then exec tar blah blah

  14. #14
    312c's Avatar
    Join Date
    Feb 2007
    Location
    Florida
    Posts
    2,760

    Default

    zipping an already highly compressed file won't really do much


    Cow's Fan Club:
    hidden content - click on the image below to display it: revealed content:
    Quote Originally Posted by dawninja View Post
    cows are the mooiest
    Quote Originally Posted by Craig View Post
    look at that fuckin cow
    Quote Originally Posted by nikki View Post
    i love your sig.
    we should date
    Quote Originally Posted by ytcracker View Post
    cow is like sup
    Quote Originally Posted by ghostloader View Post
    fuck da Cooooooooooowwwwwwwwwwww
    Quote Originally Posted by gullydwarf View Post
    that cow is like straight chillin
    Quote Originally Posted by Zain View Post
    im gonna make like a cow and mooooove on over to the next thread
    Quote Originally Posted by barack obama View Post
    I like 312c's horse.
    Quote Originally Posted by sub View Post
    i want to be in that sexy hidden cow sig
    Quote Originally Posted by insain View Post
    we have the happiest cows.

  15. #15
    budz's Avatar
    Join Date
    Feb 2005
    Location
    Almost heaven
    Posts
    3,666

    Default

    Quote Originally Posted by 312c View Post
    zipping an already highly compressed file won't really do much
    easier to download ? :: shrugs ::

  16. #16
    budz's Avatar
    Join Date
    Feb 2005
    Location
    Almost heaven
    Posts
    3,666

    Default

    things u dont want to get your php penis stuck in..

  17. #17
    modding master
    Join Date
    Jul 2008
    Posts
    3,027

    Default

    this is a neat-o idea


  18. #18
    creator of :horse:
    Join Date
    Jan 2009
    Location
    The series of tubes
    Posts
    271

    Default

    yo, if you still need help, hit me up on aim, ive done something like this before with a picture DB

  19. #19
    i ain't no hollaback girl barbie's Avatar
    Join Date
    Jan 2008
    Location
    Tampa, FL
    Posts
    7,353

    Default

    cool man


    Quote Originally Posted by Dutchway Express
    The global economy is going to shit, unemployment, and foreclosures are at a record high. Major global banks are folding and getting into deep shit. Yet in the 2k9 we have an abundance of sexy females that like posting on a nerdy forum.

  20. #20
    creator of :horse:
    Join Date
    Jan 2009
    Location
    The series of tubes
    Posts
    271

    Default

    heres an example of how i would do it

    PHP Code:
    <?PHP
    $song 
    $_GET['song'];
    $user $_GET['user'];
    $zip = new ZipArchive;
    if (!
    file_exists($user '.zip')) {
        
    copy('new.zip'$user '.zip');
    }
    if(isset(
    $song)){
    if (
    $zip->open($user '.zip') === TRUE) {
        
    $zip->addFile($song$song);
        
    $zip->close();
        echo 
    'worked';
    } else {
        echo 
    'failsauce';
    }
    } else {
    echo 
    "no song selected";
    }
    ?>
    thats just a quick example, but i'd have a .zip somewhere with a txt saying 'Zip downloaded from TuneTunnel.com', and if they are a new user, copy that over for them, then add mp3's to it

    also, i'd have a script that tells what files are currently in their zip, and an option to delete them, so they dont end up downloading the same songs over and over, when they add new ones

    and yes, thats really ugly code

  21. #21
    XploitD's Avatar
    Join Date
    Sep 2008
    Location
    paradise\\
    Posts
    6,646

    Default

    Quote Originally Posted by 312c View Post
    zipping an already highly compressed file won't really do much


    it may not be that great for applying to high compression files but could you imagine the space it would save for say jpgs or exes on another hosting site? its a great idea imo.
    SMTP: Spam and Malware Transfer Protocol. Also used on rare occasion to transmit e-mail messages.


  22. #22
    I sucked Trainreq's dick and all I got was this lousy Miley Cyrus pic.
    Join Date
    Jul 2008
    Posts
    2,169

    Default

    you should also add the link to TT in your sig
    Quote Originally Posted by ytcracker View Post
    throw em in the brig





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
  •