如何在Linux或类似系统上显示PHP源代码? [英] How can I display PHP source code on Linux or similar?
本文介绍了如何在Linux或类似系统上显示PHP源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试通过PHP脚本执行 system("cat variables.php");
,但是它什么也没写.
I am trying to do system("cat variables.php");
from a PHP script, but it doesn't write anything.
出什么问题了?
推荐答案
如果要向用户显示整个文件,请尝试:
If you want to display the entire file to users, try:
highlight_file("path/to/file");
http://us3.php.net/highlight_file
这篇关于如何在Linux或类似系统上显示PHP源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文