note 87044 modified in function.ziparchive-addfromstring by danbrown
| From: | danbrown@php.net | Date: | Sun, 16 Nov 2008 18:03:44 +0000 |
| Subject: | note 87044 modified in function.ziparchive-addfromstring by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-146606@lists.php.net to get a copy of this message | ||
if you try:
<?php
$zip->open("file", ZipArchive::CREATE);
$zip->addFromString("russian_letters/options.xml");
?>
wrong directory will be created.
if you try:
<?php
$zip->addEmptyDir("russian_letters");
?>
All be fine.
--was--
if you try:
$zip->open("file", ZipArchive::CREATE);
$zip->addFromString("russian_letters/options.xml");
wrong directory will be created.
if you try:
$zip->addEmptyDir("russian_letters");
All be fine.
http://php.net/manual/en/function.ziparchive-addfromstring.php