note 115030 added to ziparchive.addfile
| From: | todd at toddwiggins dot com dot au | Date: | Thu, 15 May 2014 03:31:52 +0000 |
| Subject: | note 115030 added to ziparchive.addfile | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199539@lists.php.net to get a copy of this message | ||
The addFile() method does not accept the "file://" protocol. Strip away
"file://" and use the absolute path instead.
I assume that it also does not accept any other protocols, I was having issues trying to add files,
other functions within the application I was building required the use of the protocol.
Also to note, the status code returned did not match any of the predefined error codes, and the
status code was never the same. My assumption was a overflow on the variable as the status codes
were around the minimum and maximum INT values.
----
Server IP: 113.20.13.217
Probable Submitter: 120.146.140.85
----
Manual Page -- http://php.net/manual/en/ziparchive.addfile.php
Edit -- https://master.php.net/note/edit/115030
Del: integrated -- https://master.php.net/note/delete/115030/integrated
Del: useless -- https://master.php.net/note/delete/115030/useless
Del: bad code -- https://master.php.net/note/delete/115030/bad+code
Del: spam -- https://master.php.net/note/delete/115030/spam
Del: non-english -- https://master.php.net/note/delete/115030/non-english
Del: in docs -- https://master.php.net/note/delete/115030/in+docs
Del: other reasons-- https://master.php.net/note/delete/115030
Reject -- https://master.php.net/note/reject/115030
Search -- https://master.php.net/manage/user-notes.php