Re: [PHP] Unzipping file through PHP

2008-05-22 Thread Gabriel Sosa
try using something like

http://www.theserverpages.com/php/manual/en/ref.zip.php




http://www.theserverpages.com/php/manual/en/ref.zip.php

On Thu, May 22, 2008 at 9:56 AM, Suamya Srivastava
[EMAIL PROTECTED] wrote:
 Hi,

 I am writing a code to upload multiple files on the server using PHP. I
 zipped the folder containing these files, uploaded the zipped file through
 my application on the server. Now,I am trying to unzip the .zip file using
 PHP. I tried it in different ways using:
 1. `unzip filename.zip`
 2. system (unzip filename.zip)
 3. system (`unzip filename.zip`)

 but it doesnt seem to work. However, the same commands work from command
 line. anybody has any ideas what might be wrong here?

 Thanks,
 Suamya.


 -
 DISCLAIMER:-
  The information in this e-mail is confidential, and is intended
 solely for the addressee or addressees. If you are not the intended recipient,
  please delete the mail and kindly notify the sender of misdelivery. Any
 unauthorised use or disclosure of the contents of the mail is not permitted
 and may be unlawful.
 -

 Scanned By MailScanner


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





-- 
Los sabios buscan la sabidurĂ­a; los necios creen haberla encontrado.
Gabriel Sosa

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Unzipping file through PHP

2008-05-22 Thread Wolf

 Suamya Srivastava [EMAIL PROTECTED] wrote: 
 Hi,
 
 I am writing a code to upload multiple files on the server using PHP. I
 zipped the folder containing these files, uploaded the zipped file through
 my application on the server. Now,I am trying to unzip the .zip file using
 PHP. I tried it in different ways using:
 1. `unzip filename.zip`
 2. system (unzip filename.zip)
 3. system (`unzip filename.zip`)
 
 but it doesnt seem to work. However, the same commands work from command
 line. anybody has any ideas what might be wrong here?
 
 Thanks,
 Suamya.
 

RTFM is a GREAT place to start.  http://us3.php.net/zip

What errors show up in your logs?

Wolf

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Unzipping file through PHP

2008-05-22 Thread TG

Last night I was looking around at frameworks and such and I found ez 
Components which has an 'archive' module that assists in handling Zip files:

http://ezcomponents.org/docs/api/latest/introduction_Archive.html


- Original Message -
From: Gabriel Sosa [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Date: Thu, 22 May 2008 10:46:01 -0300
Subject: Re: [PHP] Unzipping file through PHP

 try using something like
 
 http://www.theserverpages.com/php/manual/en/ref.zip.php
 
 
 
 
 http://www.theserverpages.com/php/manual/en/ref.zip.php
 
 On Thu, May 22, 2008 at 9:56 AM, Suamya Srivastava
 [EMAIL PROTECTED] wrote:
  Hi,
 
  I am writing a code to upload multiple files on the server using PHP. I
  zipped the folder containing these files, uploaded the zipped file through
  my application on the server. Now,I am trying to unzip the .zip file using
  PHP. I tried it in different ways using:
  1. `unzip filename.zip`
  2. system (unzip filename.zip)
  3. system (`unzip filename.zip`)
 
  but it doesnt seem to work. However, the same commands work from command
  line. anybody has any ideas what might be wrong here?
 
  Thanks,
  Suamya.
 
 
  -
  DISCLAIMER:-
   The information in this e-mail is confidential, and is intended
  solely for the addressee or addressees. If you are not the intended 
  recipient,
   please delete the mail and kindly notify the sender of misdelivery. Any
  unauthorised use or disclosure of the contents of the mail is not permitted
  and may be unlawful.
  -
 
  Scanned By MailScanner
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 
 
 -- 
 Los sabios buscan la sabidurĂ­a; los necios creen haberla encontrado.
 Gabriel Sosa
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php