Manuál PHP | ||
---|---|---|
PÅ™edcházejÃcà | Dalšà |
Phar::loadPhar
(no version information, might be only in CVS)
Phar::loadPhar -- Loads any phar archive with an aliasPopis
bool Phar::loadPhar ( string filename [, string alias] )This can be used to read the contents of an external Phar archive. This is most useful for assigning an alias to a phar so that subsequent references to the phar can use the shorter alias, or for loading Phar archives that only contain data and are not intended for execution/inclusion in PHP scripts.
Seznam parametrů
filename
the full or relative path to the phar archive to open
alias
The alias that may be used to refer to the phar archive. Note that many phar archives specify an explicit alias inside the phar archive, and a PharException will be thrown if a new alias is specified in this case.
Errors/Exceptions
PharException is thrown if an alias is passed in and the phar archive already has an explicit alias
PÅ™Ãklady
PÅ™edcházejÃcà | Domů | Dalšà |
Phar->isBuffering | Nahoru |