Re: Re: unzip a file - destination folder wrong
| From: | 9el | Date: | Thu, 23 Apr 2009 17:28:14 +0000 |
| Subject: | Re: Re: unzip a file - destination folder wrong | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-291885@lists.php.net to get a copy of this message | ||
<snip>
>
>>
>> $fp = fopen(dirname($filename) . '/' . zip_entry_name($zip_entry),
>> "w");
>>
>>
> thank you this worked. How come the . '/' . zip_entry_name($zip_entry) is
> needed? Looks like a double file name, but the result is ok. Could you
> explain this line?
</snip>
read carefully, you'll understand too. :)
its extracting the directory name with the dirname($filename) then
concatenation with the name of zip file only :)
regards
Lenin
www.twitter.com/nine_L