Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在表单邮件中有一些代码:
$t = date("U"); $file = $_SERVER['DOCUMENT_ROOT'] . "\ssfm\gdform_" . $t;
我有理由相信在我的客户 GoDaddy 服务器上$_SERVER['DOCUMENT_ROOT']是错误的。但是,如何在不影响该窗口的安全性的情况下在实时站点上查看该值?
$_SERVER['DOCUMENT_ROOT']
使用它,您可以填写 的空白your.external.IP.address。
your.external.IP.address
<?php if($_SERVER['REMOTE_ADDR'] == your.external.IP.address) var_dump($_SERVER);
这将仅显示您的 IP。可以在此处找到有关 $_SERVER 的文档。