Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [php] Operacje na plikach zip z hasłami
--mundek88--
post 14.10.2007, 19:43:20
Post #1





Goście







Witajcie,
pytanie streszczonie w nazwie tematu;
wiem że istnieje możliwość pakowania / rozpakowywania plików zip skryptem php, ale czy nadal jest to możliwe gdy chcę rozpakować takie archwium zabezpieczone hasłem ? albo utworzyć archwium z własnym hasłem ?
szukam, szukam i nie nic na ten temat znaleźć nie mogę...
z góry dzięki za pomoc
pozdrawiam
Go to the top of the page
+Quote Post
drPayton
post 14.10.2007, 21:54:02
Post #2





Grupa: Zarejestrowani
Postów: 890
Pomógł: 65
Dołączył: 13.11.2005
Skąd: Olsztyn

Ostrzeżenie: (0%)
-----


W komentarzach na http://pl.php.net/zip
jest takie coś:
Cytat
If you want to unzip an password protected file with php..try the following command....it works in Unix/Apache environment...I haven't tested in any other environment...

system("`which unzip` -P Password $zipfile -d $des",$ret_val)

Where $zipfile is the path to the .zip to be unzipped and $des is path to the destination directory.....here both absolute and relative path to the script (which contains this system command) will work...

if everything runs well...file should be unzipped at the $des directory..and you will get 0 value for $ret_val , which means success(info-zip.org)

Regards
Krishnendu


I wychodziłoby na to, że to jedyna metoda...
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 18:49