为什么会出错呢
为什么会出错呢
<?php
$filename = '/data/webroot/usercode/code/test2.txt';
//写入一个字符串到$filename文件中
$a='haha';
if (!file_exists($filename)){
mkdir($filename);}
file_put_contents($filename,$a)这个会报错的
为什么会出错呢
<?php
$filename = '/data/webroot/usercode/code/test2.txt';
//写入一个字符串到$filename文件中
$a='haha';
if (!file_exists($filename)){
mkdir($filename);}
file_put_contents($filename,$a)这个会报错的
2016-02-19
举报