TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Show Off (http://www.talkphp.com/show-off/)
-   -   ZipThings (http://www.talkphp.com/show-off/3929-zipthings.html)

mortisimus 02-01-2009 11:05 PM

ZipThings
 
http://www.zipthings.com/

A website that allows you to grab any files from anywhere on the internet and bundle them all into 1 zip file as one big download instead ofg having to go around and then having to sort all your downloads out after they're finished.

Obviously the site is focused more on working and coding rather than design (yes, yes I know the design is crap).

Just thought it'd come in handy for some people :-)

Village Idiot 02-02-2009 03:40 AM

Very cool, that is an interesting way to apply zip procedures.

mortisimus 02-02-2009 08:25 AM

Be sure to spread the word around! 8-)

Wildhoney 02-02-2009 09:24 PM

Very nice idea! However, I entered a root domain that is a web-page, and all I got in my ZIP file was one file with no extension. I think you should definitely specify the extensions in the ZIP files. I was also expecting the system to add in all the images it could locate on the URL I gave it. I think that should definitely be the case, because the idea is fantastic, now it just needs a little more functionality added!

As I say, that's a lovely idea, and I will be sure to add your link to the left on TalkPHP if you add those above features :-) ! Google will show you a little love, if nothing else.

mortisimus 02-02-2009 11:18 PM

Looks like I've got my work cut out! *!*

Haha, just joking, thanks for the great ideas Wildhoney, I'll definately get working on this.

Keep an eye out for these features if I can get it to work :-D

Wildhoney 02-02-2009 11:58 PM

I can't actually test this script I've just written because my web-server is currently broken, but hopefully it will give you an idea how to go about it :-) If you require any help what-so-ever though, do just ask the community!

php Code:
function getElementsByExtension(array $aExtensions)
{
    $szContent = file_get_contents('http://www.talkphp.com/show-off/3929-zipthings.html');
    $aElements = array();
   
    foreach ($aExtensions as $szExtension)
    {
        preg_match_all('~(?:src|href)="([^"]+\.' . $szExtension . ')"~is', $szContent, $aMatches);
        $aElements[] = $aMatches[1];
    }
   
    $pArray = (object) array('aFlat' => array());
    array_walk_recursive($aElements, create_function('&$v, $k, &$t', '$t->aFlat[] = $v;'), $pArray);
    return $pArray->aFlat;
   
}

print_r(getElementsByExtension(array('jpg', 'gif', 'css')));

KingOfTheSouth 02-10-2009 09:39 PM

Does it give you the full page querys and all?

xdam 06-24-2009 11:40 AM

Hey, you should move the 'add file field' button up to the right of the URL box and maybe rename it to 'Add another file' or just use an icon.

Home and Zip in the top nav are the same page, maybe get rid of one of those? Also, change 'partner site' to 'upload images' to make it more obvious.

I think the site is a great idea.


All times are GMT. The time now is 05:20 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0