note 91490 added to function.ziparchive-addemptydir
| From: | C62 at osu1 dot php dot net | Date: | Fri, 12 Jun 2009 11:26:49 +0000 |
| Subject: | note 91490 added to function.ziparchive-addemptydir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-156800@lists.php.net to get a copy of this message | ||
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...
----
Server IP: 193.190.67.6
Probable Submitter: 81.244.191.236
----
Manual Page -- http://www.php.net/manual/en/function.ziparchive-addemptydir.php
Edit -- https://master.php.net/note/edit/91490
Del: integrated -- https://master.php.net/note/delete/91490/integrated
Del: useless -- https://master.php.net/note/delete/91490/useless
Del: bad code -- https://master.php.net/note/delete/91490/bad+code
Del: spam -- https://master.php.net/note/delete/91490/spam
Del: non-english -- https://master.php.net/note/delete/91490/non-english
Del: in docs -- https://master.php.net/note/delete/91490/in+docs
Del: other reasons-- https://master.php.net/note/delete/91490
Reject -- https://master.php.net/note/reject/91490
Search -- https://master.php.net/manage/user-notes.php