- $_SERVER['SERVER_ADDR'] 現在のスクリプトが実行されているサーバの IP アドレス
if ( $_SERVER['SERVER_ADDR'] == 'xxx.xxx.xxx.xxx' ){
$notify = 0; #echo "無効"; exit(0);
} else {
$notify = 1; #echo "有効"; exit(0);
}
参考
- http://bibo-roku.net/program/12.php
Related Links
- 説明 $_SERVER は、ヘッダ、パス、スクリプトの位置のような 情報を有する配列です。この配列のエントリは、Web サーバーにより 生成されます。全ての Web サーバーがこれら全てを提供する保障はありません。 サーバーは、これらの ...
- ホーム > PHPによるWebプログラミング > サーバ変数 HTTP_REFERER リンクをたどってきた場合,$_SERVER['HTTP_REFERER'] を調べれば,一つ前のページのアドレスがわかります。 あなたはリンクをたどらずにこのページに来ましたね ...
Related Pictures







★リンクテーブル★
[★]
- 英
- number、count、numeral
- 関
- ナンバー、数値、数える、カウント、番号をつける、数字、数詞
[★]
- 英
- variable
- 関
- 可変、可変性、変量、不定
[★]
- 英
- server
- 関
- サーバー