uehh.. sempre qui sono...![]()
ho un problemino semplice semplice spero... nel mio sito ho messo uno script asp che rileva il nome del o.s. il problema che mi restituisce il nome del o.s. del server dove ho il sito e non del pc del visitatore come posso fare...
:master:codice:<% Dim IP IP=Request.ServerVariables("HTTP_X_FORWARDED_FOR") If IP="" Then IP=Request.ServerVariables("REMOTE_ADDR") End If %> <% public function getServerOS() Dim lvServer Dim lvServerVar ' Attribuisce alla variabile il valore della Variabile Server lvServerVar = Request.ServerVariables("SERVER_SOFTWARE") ' Controlla il valore di IIS ' univoco per ogni sistema operativo if Instr(lvServerVar, "IIS/4") > 0 then lvServer = "Microsoft Windows NT" elseif Instr(lvServerVar, "IIS/5.0") > 0 then lvServer = "Microsoft Windows 2000" elseif Instr(lvServerVar, "IIS/5.1") > 0 then lvServer = "Microsoft Windows XP" elseif Instr(lvServerVar, "IIS/6") > 0 then lvServer = "Microsoft Windows 2003" end if ' Valore di ritorno della funzione getServerOS = lvServer end function %>

-
Rispondi quotando