Links to know aboutMusic The Chiara String Quartet Chiara Quartet (MySpace) Greenwood Music Camp UNL School of Music PHP PEAR Installer Manifesto phpDocumentor PEAR phar docblock PHP_Parser PHP_Parser_DocblockParser PHP_ParserGenerator PHP_LexerGenerator PEAR_PackageFileManager PHP_Archive Games_Chess Blogs Joshua Eichorn Paul M. Jones Davey Shafik Popular EntriesSetting up your own PEAR channel with Chiara_PEAR_Server - the official way
(30) Do you develop a website? It is infinitely better to synchronize live and development sites using the PEAR Installer(25) doing the PEAR thing(19) Using PEAR 1.4.0 to install PEAR packages on a remote host(19) phpDocumentor and __get/__set/__call - give us your ideas (RFC)(17) CategoriesPowered by |
Thursday, May 29. 2008php|tek PEAR/phar/Pyrus talk slidesTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Hi Greg!
Thanks for this info about phar and nice extension. I've started for testing and usage phar. Is it possible to use phar with non-file-based storage? For example: $a = new Phar('any_storage://package.phar.tar'); and also in includes or need real file for reading and includes? Only temp-files way? If it possible and not very slow please add such features that allow work with alternative storages such as memory, string, custom(for DB) and so on
Hi Dan,
Phar only works with file-based storage for several reasons. Although streams could be supported relatively easily, this could introduce an unnecessary security risk. For instance: Phar is explicitly enabled to work with only local files, remote is never supported. It's really not good to use a dynamically created phar in the same process, you should only ever use one that was created separately.
Hi, Greg,
Well, I understand that write permissions really danger in web applications. I plan to use phars as tar-packages-libraries in basically (not web-executable). This is a very suitable alternative for set_include. How about performance in this case? My library in phar will extracted once or per-request? Of course, that creating phar and include phar will be in separated processes. But I would like to keep phars not only in filesystem but in memory or database for later using. This requires at least two basic approaches: - copy phar.tar from alternative storage to temp-file-storage - include 'phar:///temp/storage/lib.phar.tar' or another: - create stream-wrapper for phar that can load phar from memory, string or db - include 'mywrapper:///memstorage/lib.phar.tar' |
Links in this articlePEAR Installer ManifestoCalendar
QuicksearchMy Latest ReleasesTop Exitspear.php.net (239)
www.php.net (79) pear.chiaraquartet.net (37) pecl.php.net (37) php.net (35) Blog Administration |
|||||||||||||||||||||||||||||||||||||||||||||||||