|
Phar::addFile(Unknown) Phar::addFile — Add a file from the filesystem to the phar archive Описание
void Phar::addFile
( string $file
[, string $localname
] )
With this method, any file or URL can be added to the phar archive. If the optional second parameter localname is specified, the file will be stored in the archive with that name, otherwise the file parameter is used as the path to store within the archive. URLs must have a localname or an exception is thrown. This method is similar to ZipArchive::addFile(). Список параметров
Возвращаемые значенияno return value, exception is thrown on failure. Примеры
Пример #1 A Phar::addFile() example
<?php Смотрите также
|
|