$content = file_get_contents($filename); echo $content;
No such file or directory。
这是怎么回事?
<?php $filename = '/data/webroot/usercode/code/resource/test.txt'; //编写代码读取$filename的文件内容 $content=file_get_contents($filename); echo $content;