推奨:ASPでVB Activex.dllファイルを使用します選択の選択がない限り、誰もが必要にならずに仕事に面倒なアプローチをとることはありません。ですから、ASP開発をより速く効率的にすることができる簡単なテクニックがある場合は、特に興味を持っている必要があります。この方法は、ほとんどのASPページから視覚的な基本的なアクティブに転送されます
一般的な関数、実際のIPを取得できない場合、プロキシIPを置き換えます。
プライベート機能getIp()
Dim Stripaddr
if request.servervariables(http_x_forwarded_for)=またはstrument.servervariables(http_x_forwarded_for)、不明)> 0
StripAddr = request.servervariables(remote_addr)
elseif strums(request.servervariables(http_x_forwarded_for)、、)> 0
StripAddr = MID(Request.Servervariables(http_x_forwarded_for)、1、strument(request.servervariables(http_x_forwarded_for)、、)-1)
elseif strums(request.servervariables(http_x_forwarded_for)、;)> 0
StripAddr = Mid(request.servervariables(http_x_forwarded_for)、1、strument(request.servervariables(http_x_forwarded_for)、;)-1)
それ以外
Stripaddr = request.servervariables(http_x_forwarded_for)
ifを終了します
getIP =トリム(MID(StripAddr、1、30))
エンド関数
共有:ASPを介してRARファイルを自動的に減圧します実際、この機能を実装するのは非常に簡単です。次に、rar.exeを実行するプログラムをアップロードする必要があります。最後に、これらのプログラムの実行を開始します。次のコードを見てください