2008年7月9日
摘要: <?php//创建文件夹function createFolders($path){ //递归创建 if (!file_exists($path))//如果文件夹不存在 { createFolders(dirname($path));//取得最后一个文件夹的全路径返回开始的地方 mkdir($path, 0777); }}//创建并写文件function createFile($filename,$content){ createFolders($filename);//创建文件夹 file_put_contents($filename,$content);//写文件 chmod($fi 阅读全文
posted @ 2008-07-09 16:32 wkjs 阅读(193) 评论(0) 推荐(0) 编辑