[cc]// 文件测试
$array = array(
‘001’ => ‘123’,
‘002’ => ‘321’,
‘003’ => ‘4321’,

);
$path = ‘./Cache/videoCate.php’;
if (!file_exists($path)){
mkdir(dirname($path),0777,TRUE);
}

file_put_contents($path, ““);
$arr = require $path;
var_dump($arr);[/cc]

发表评论

您的电子邮箱地址不会被公开。