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

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

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

相关代码

												 				  Add an empty directory to the tar/zip archive				  				 				 				 PharData				 PharData::addFile				 PharData				 PHP Manual								 				  PharData::addEmptyDir				  (No version information available, might be only in CVS)PharData::addEmptyDir — Add an empty directory to the tar/zip archive								 				 				  Description				  				   bool PharData::addEmptyDir				    ( string $dirname				   )												  				   With this method, an empty directory is created with path dirname.				   This method is similar to ZipArchive::addEmptyDir().				  								 								 				  Parameters				  				   								    								     dirname												     								      				       The name of the empty directory to create in the phar archive				      				     								    								   								  				 												 				  Return Values				  				   no return value, exception is thrown on failure.				  				 												 				  Examples				  				   				    Example #1 A PharData::addEmptyDir() example				    								<?phptry {    $a = new PharData('/path/to/my.tar');    $a->addEmptyDir('/full/path/to/file');    // demonstrates how this file is stored    $b = $a['full/path/to/file']->isDir();} catch (Exception $e) {    // handle errors here}?>												    								   				  				 												 				  See Also				  				   				    Phar::addEmptyDir()				    PharData::addFile()				    PharData::addFromString()				   				  				 																				 PharData				 PharData::addFile				 PharData				 PHP Manual											

相关资源