クエリの詳細とともに SQL 挿入を実行しているサーバーを特定する方法はありますか? 挿入物がどこから来ているのかわからず、ソースを特定したい
質問する
1030 次
1 に答える
0
If you are using PHP, then;
Here is the code to display your ip address.
$ip=@$REMOTE_ADDR;
echo "<b>IP Address= $ip</b>";
IP address if the register_global is off
If at php.ini
if register_global is set to Off then we have to change the script a bit to get the address. Here it is
$ip=$_SERVER['REMOTE_ADDR'];
The IP address from which the user is viewing the current page.
Note that changing register global setting my be a security problem particularly in live hosting environment so consult your host before in this aspects also.
于 2012-09-10T17:02:04.933 に答える