Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 10 years ago.
是的,肯定有一个。
确保您关闭了 display_errors ,以使用户看不到所有错误消息。
display_errors
然后通过向其中添加 $_SERVER['DOCUMENT_ROOT'] 或任何其他方式使这些路径成为真实路径。
$_SERVER['DOCUMENT_ROOT']
是的,只要您使用这种
include $_SERVER['DOCUMENT_ROOT'].'/common/lib.php';
不使用动态生成的文件名
的代码,您就可以认为自己是安全的。
Yeah, there is one for sure.
Make sure that you turned display_errors off, to make all the error messages you will get invisible to the user.
Then make these paths real, by adding $_SERVER['DOCUMENT_ROOT'] to them or any other way.
And yes, as long as you are using this kind of code
using no dynamically generated filenames
you may consider yourself safe.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
是的,肯定有一个。
确保您关闭了
display_errors
,以使用户看不到所有错误消息。然后通过向其中添加
$_SERVER['DOCUMENT_ROOT']
或任何其他方式使这些路径成为真实路径。是的,只要您使用这种
不使用动态生成的文件名
的代码,您就可以认为自己是安全的。
Yeah, there is one for sure.
Make sure that you turned
display_errors
off, to make all the error messages you will get invisible to the user.Then make these paths real, by adding
$_SERVER['DOCUMENT_ROOT']
to them or any other way.And yes, as long as you are using this kind of code
using no dynamically generated filenames
you may consider yourself safe.