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