PHP文件包含


!!!php需要用fastcgi/cgi,以fastcgi运行的php都可以用这个方法

创建文件 .user.ini

文件中写 auto_prepend_file=1.jpg 

其中1.jpg为要包含的文件

此时访问任意php文件均会包含1.jpg文件中的内容

https://wooyun.js.org/drops/user.ini%E6%96%87%E4%BB%B6%E6%9E%84%E6%88%90%E7%9A%84PHP%E5%90%8E%E9%97%A8.html

相关