[PHP] Protected ZIP file with password

2008-02-16 Thread Petrus Bastos
Hey folks, Do you know how can I create a protected zip file with password? Is there anyway? I've search on the internet, but without success. Thank's in advance, Petrus Bastos.

Re: [PHP] Protected ZIP file with password

2008-02-17 Thread Petrus Bastos
Hi Nick, Sorry, but I forgot to tell you that I can't use this exec neither system commands because they are disabled for security precautions. So, Do you have any other ideas on how can I do that? Thanks for your help, Petrus Bastos. On Feb 17, 2008 5:15 AM, Nick Stinemates [EMAIL

Re: [PHP] Protected ZIP file with password

2008-02-17 Thread Petrus Bastos
Unfortunately I don't have access to this family of methods because security policy. Lefting this way out, I didn't find anyway on how to do that. If you have any idea or know any module can do that, I'll appreciate to know too! Thanks in advance, Petrus Bastos. On Feb 17, 2008 2:30 PM, Daniel

Re: [PHP] Protected ZIP file with password

2008-02-17 Thread Petrus Bastos
Nick, I thank you help! But unfortunalety I didn't find way to do this. I'll continue trying. If you have any other idea, I'll appreciate to hear! Best regards, Petrus Bastos. On Feb 17, 2008 4:57 PM, Nick Stinemates [EMAIL PROTECTED] wrote: Petrus Bastos wrote: Hi Nick, Sorry

Re: [PHP] Protected ZIP file with password

2008-02-17 Thread Petrus Bastos
Chris, Thanks for your help, but I think that package can't make what I want. But , I appreciate your help anyway and if you have any other ideas, please let me know! :) Thanks, Petrus Bastos. On Feb 17, 2008 10:38 PM, Chris [EMAIL PROTECTED] wrote: Petrus Bastos wrote: Unfortunately I

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Petrus Bastos
to generate the file already protected. PS: Sorry my bad english. I'm Brazilian and I'm not fluent english. Thanks one more time, Petrus Bastos. On Feb 18, 2008 12:26 AM, Nick Stinemates [EMAIL PROTECTED] wrote: Petrus Bastos wrote: Chris, Thanks for your help, but I think that package

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Petrus Bastos
Bastien, I thank your help, but I think that your idea doesn't resolve my problem because I need generate that file online when user clicks on a link.The file must be obtained at the time he clicks. Thanks anyway, Petrus Bastos. On Feb 18, 2008 12:18 PM, Bastien Koert [EMAIL PROTECTED

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Petrus Bastos
Wolf, I thank your help! I have all zip methods available, but don't have any method that generate password protected zip file. Thanks anyway, Petrus Bastos. On Feb 18, 2008 1:10 PM, Wolf [EMAIL PROTECTED] wrote: Petrus Bastos [EMAIL PROTECTED] wrote: Bastien, I thank your

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Petrus Bastos
Daniel, But I can install PEAR/PECL modules, but I didn't see any module that do what I want. Do you know any module that create password protected zip files? Thanks again, Petrus Bastos. On Feb 18, 2008 1:29 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Feb 18, 2008 11:18 AM, Petrus

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Petrus Bastos
Richard, Unfortunately, I can't get out of the zip password rut because the destination system read only this file format. I can't change the destination system. Thanks, Petrus. On Feb 18, 2008 2:11 PM, Richard Lynch [EMAIL PROTECTED] wrote: On Mon, February 18, 2008 5:59 am, Petrus

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Petrus Bastos
Hey folks, I got access to exec method for test! But, it's not working... :( the function returns 127 and don't create the zip file, I've tested on Linux command tool and works! Do you have any idea why didn't work? Thanks again and sorry for the inconvenience, Petrus Bastos. On Feb 18

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Petrus Bastos
I'm testing on FreeBSD. I can use any command through system(), but the zip command doesn't works! I don't know why. On Feb 18, 2008 4:06 PM, Nick Stinemates [EMAIL PROTECTED] wrote: Petrus Bastos wrote: Hey folks, I got access to exec method for test! But, it's not working

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Petrus Bastos
Yes. On Feb 18, 2008 5:50 PM, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] I'm testing on FreeBSD. I can use any command through system(), but the zip command doesn't works! I don't know why. [/snip] Have you tried the command from the command line without PHP to make sure it works?

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Petrus Bastos
zip program is installed. I'd type whereis and returned /usr/ports/archivers/zip. I've change my zip command and put th whole path. Now return error 126. :( On Feb 18, 2008 5:51 PM, Stut [EMAIL PROTECTED] wrote: Petrus Bastos wrote: I'm testing on FreeBSD. I can use any command through system

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Petrus Bastos
Unfortunately, I don't have access to root user here. It was a miracle get access to system command. I have to resolve this problem without root user. :( On Feb 18, 2008 6:08 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Shawn McKenzie wrote: Petrus Bastos wrote: zip program is installed. I'd

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Petrus Bastos
Ok. I've tried the command again and returned /usr/local/bin/zip... but return the same error... On Feb 18, 2008 6:13 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Petrus Bastos wrote: Unfortunately, I don't have access to root user here. It was a miracle get access to system command. I have

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Petrus Bastos
I'd look at parameters and my command is ok. On Feb 18, 2008 5:51 PM, Nick Stinemates [EMAIL PROTECTED] wrote: Petrus Bastos wrote: I'm testing on FreeBSD. I can use any command through system(), but the zip command doesn't works! I don't know why. On Feb 18, 2008 4:06 PM, Nick

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Petrus Bastos
Actually, I don't know anything about FreeBSD. I never used this system. But, here my zip command works fine at command line, why doesn't works with PHP? On Feb 18, 2008 6:28 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Greg Donald wrote: On 2/18/08, Shawn McKenzie [EMAIL PROTECTED]

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Petrus Bastos
Wolf, I'm sure actually working from the command line. /usr/local/bin/zip -P t.zip biblioteca.php adding: biblioteca.php (deflated 73%) On Feb 18, 2008 6:37 PM, Wolf [EMAIL PROTECTED] wrote: Petrus Bastos [EMAIL PROTECTED] wrote: Actually, I don't know anything about

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Petrus Bastos
Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/zip.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch ' ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/zip.tbz' by URL :( On Feb 18, 2008

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Petrus Bastos
I've tried. returned Array ( ) 127 On Feb 18, 2008 6:58 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Feb 18, 2008 4:55 PM, Petrus Bastos [EMAIL PROTECTED] wrote: system(/usr/local/bin/zip -P t.zip biblioteca.php,$ret_val); that's my code and even zip with full path, return

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Petrus Bastos
Results the same thing. On Feb 18, 2008 6:59 PM, Wolf [EMAIL PROTECTED] wrote: Petrus Bastos [EMAIL PROTECTED] wrote: system(/usr/local/bin/zip -P t.zip biblioteca.php,$ret_val); that's my code and even zip with full path, return $ret_val = 127; On Feb 18, 2008 6:43 PM

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Petrus Bastos
system(/usr/local/bin/zip -P t.zip biblioteca.php,$ret_val); that's my code and even zip with full path, return $ret_val = 127; On Feb 18, 2008 6:43 PM, Wolf [EMAIL PROTECTED] wrote: Petrus Bastos [EMAIL PROTECTED] wrote: Wolf, I'm sure actually working from the command

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Petrus Bastos
PM, Shawn McKenzie [EMAIL PROTECTED] wrote: In your php code you'll need the full path to biblioteca.php and to t.zip and the web user will need write permissions to the dir where you create t.zip. -Shawn Petrus Bastos wrote: Wolf, I'm sure actually working from the command line

[PHP] Password protected ZIP file

2008-02-25 Thread Petrus Bastos
Hey folks, I just wanna say thanks for whole help you've had give to me. I did solve my problem with clues you give to me. Now, I have a server exclusively to my project and I enabled the system command and zip command works fine. Thanks again, Petrus Bastos.