【文件属性】:
文件名称:php解析ini文件
文件大小:1KB
文件格式:PHP
更新时间:2014-07-29 04:03:58
php解析ini
php解析ini class iniEdit{
var $inifile=false;
var $filename=false;
public function createfile($filepath){//打开ini文件
$type=explode('.',$filepath);
if($type[count($type)-1]!="ini"){echo "文件格式不对!";}
if(file_exists($filepath)){
$this->inifile=parse_ini_file($filepath,true);
$this->filename=$filepath;
return $this->inifile;
}else{
echo "没有发现ini文件";