為什么就是不對呢
<?php
$filename = '/data/webroot/usercode/code/resource/test.txt';
if (is_writeable($filename)) {
? ? file_put_contents($filename, 'test');
}
if (is_readable($filename)) {
? ? echo 'readable';
}
//判斷如果$filename文件存在的話 就輸出文件內(nèi)容
if(file_exists($filename)){
? $con = file_get_contents($filename);
? echo $con;
}
2016-04-04
http://idcbgp.cn//data/webroot/usercode/resource/test.txt
2015-09-29
對的,你再試一下