php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容

源代码在线查看: phardata.construct.html

软件大小: 3633 K
上传用户: fengkuangyidao
关键词: php PHP 文档 实际应用
下载地址: 免注册下载 普通下载 VIP

相关代码

												 				  Construct a non-executable tar or zip archive object				  				 				 				 PharData::compressFiles				 PharData::convertToData				 PharData				 PHP Manual								 				  PharData::__construct				  (No version information available, might be only in CVS)PharData::__construct — Construct a non-executable tar or zip archive object								 				 				  Description				  				   void PharData::__construct				    ( string $fname				   [, int $flags				  ] )												 								 				  Parameters				  				   								    								     fname												     								      				       Path to an existing tar/zip archive or to-be-created archive				      				     								    								    								     flags												     								      				       flags to pass to Phar parent class RecursiveDirectoryIterator.				       See » SPL RecursiveDirectoryIterator docs				      				     								    								   								  				 												 				  Errors/Exceptions				  				   Throws BadMethodCallException if called twice, UnexpectedValueException				   if the phar archive can't be opened.				  				 																 				  Examples				  				   				    Example #1 A PharData::__construct() example				     				      				       				<?phptry {    $p = new PharData('/path/to/my.tar', CURRENT_AS_FILEINFO | KEY_AS_FILENAME);} catch (UnexpectedValueException $e) {    die('Could not open my.tar');} catch (BadMethodCallException $e) {    echo 'technically, this cannot happen';}echo file_get_contents('phar:///path/to/my.tar/example.txt');?>												     								    				   				  				 																 PharData::compressFiles				 PharData::convertToData				 PharData				 PHP Manual											

相关资源