Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 02-17-2003, 12:41 AM   #1 (permalink)
Zoist
Registered User
 
Zoist's Avatar
 
Join Date: Feb 2003
Posts: 6
Zoist is on a distinguished road
PHP zip

I looked at the php site to allow php to open zip files and let a user choose from the zip file which the user wanted to download. Is there a complete php script somewhere?
Zoist is offline   Reply With Quote
Old 02-17-2003, 12:45 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,475
sde is on a distinguished road
http://www.php.net/manual/en/ref.zip.php

hey that's pretty cool, .. i guess that is what you were looking at. it looks like they have examples there, but i've never worked with it.

definately something i'm going to check out though =)

please post if you figure it out, .. and welcome to codenewbie!
sde is offline   Reply With Quote
Old 02-17-2003, 12:51 AM   #3 (permalink)
Zoist
Registered User
 
Zoist's Avatar
 
Join Date: Feb 2003
Posts: 6
Zoist is on a distinguished road
Thanks man :rock:

Basically that's what I was reading, but I ain't a php pro...Not yet anyway. I am not too bad at perl, but not a pro though.

Cheers
Zoist is offline   Reply With Quote
Old 02-17-2003, 12:54 AM   #4 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,475
sde is on a distinguished road
i like to help people with php here so make sure you ask questions when ya got them .. the zip thing i will have to see what it is all about, .. but i'm sure we can help you with other stuff .. as well as we could use your expertise in the perl area to help other members too =)
sde is offline   Reply With Quote
Old 02-20-2003, 08:17 AM   #5 (permalink)
Zoist
Registered User
 
Zoist's Avatar
 
Join Date: Feb 2003
Posts: 6
Zoist is on a distinguished road
Here is the snip of code that does the job in perl. I had to get a little help with this one.

It can be tweaked to be put in a Web setup.

Code:
#!/usr/bin/perl

my $output=`/usr/bin/unzip -l zipname.zip `;
print "<pre>\n$output\n</pre>";
}
Zoist is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Comes of Age sde Code Newbie News 0 04-14-2004 11:41 AM
new to php jhoop2002 PHP 12 08-06-2003 02:45 PM
I need to learn PHP Nitro PHP 9 06-28-2003 11:24 AM
PHP as CGI?? bdl PHP 8 05-08-2003 08:29 AM
PHP Command-Line Arguments? Antagony PHP 3 05-02-2003 12:26 PM


All times are GMT -8. The time now is 10:48 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting