最赞回答 / jason300614
$filename = '/data/webroot/usercode/resource/test.txt';//编写代码读取$filename的文件内容$str = 'this is a test file.';$contents = file_put_contents($filename,$str);$newStr = file_get_contents($filename);echo $newStr;
2014-11-25