可以任意修改test內(nèi)容,
內(nèi)容不對(duì)可以這樣
<?php
$filename = '/data/webroot/usercode/resource/test.txt';
//編寫代碼讀取$filename的文件內(nèi)容
$fp=fopen($filename,'w');
echo "\n";
$contented=file_get_contents($filename);
$content="this a test file";
fputs($fp,$content); ?//此句可修改文件內(nèi)容,內(nèi)容為$content中的值
fclose($fp); ?
echo $contented;
?>
2015-04-20
太假了。。好像 mooc不支持。修改了
2014-12-21
啊啊啊
2014-11-23
0.0