Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
making zipfile for MAC/WIN ?!?
Old 11-17-2008, 06:56 AM making zipfile for MAC/WIN ?!?
Junior Talker

Posts: 4
Trades: 0
My programm archives correctly some files when an user would like to download them from a web-site. But this zip-archive will be opened in Windows only!
In MAC there is an Error 1 - The events is not allowed. The archive cannot be dearchivated on the desktable.
Where is the problem? In zip-archive class in my code? Is it possible to open such zip-archiv in MAC? By the way, this zip-file i could copy from MYC to Win and opeN!!! But not and vise versa!

Thank you all for answers!
aksu is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-17-2008, 02:59 PM Re: making zipfile for MAC/WIN ?!?
gmcalp's Avatar
Novice Talker

Posts: 8
Name: Geoff
Trades: 0
Is this what you're looking for?

http://www.granthinkson.com/2005/07/...lly-using-php/

You could also gzip your files and those would definitely be openable by MACs and Windows (with the right software).

It would also help to have some code to see so we can help to debug.

Last edited by gmcalp; 11-17-2008 at 03:02 PM..
gmcalp is offline
Reply With Quote
View Public Profile
 
Old 11-19-2008, 03:30 AM Re: making zipfile for MAC/WIN ?!?
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
OMG
Why are you always trying to use script solutions when there is command line tool available?
PHP Code:
$files[] = "/mysite/file1";
$files[] = "/mysite/file2";
$files[] = "/mysite/file4";
$files implode(' '$files);
exec("zip {$full_path_to_zipfile} {$files}"); 
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Reply     « Reply to making zipfile for MAC/WIN ?!?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12313 seconds with 12 queries