note 91490 deleted from function.ziparchive-addemptydir by danbrown
| From: | danbrown@php.net | Date: | Fri, 12 Jun 2009 22:19:01 +0000 |
| Subject: | note 91490 deleted from function.ziparchive-addemptydir by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-156827@lists.php.net to get a copy of this message | ||
Note Submitter: C62
----
The previous code works very well (thanks a lot) on linux, but on windows, the string returned by
realpath() contains "\" and not "/", it results that the "$cutFrom"
var does not have the right value.
the line "$dirName = realpath($dirName);" should then be replaced by this one:
$dirName = str_replace('\\', '/', realpath($dirName));
hope this could be usefull :)
PS: forgive my bad english...