Comunidad de diseño web y desarrollo en internet online

IP

Citar            
MensajeEscrito el 05 Oct 2005 11:53 pm
Hola que tal.

¿Alguien sabe como puedo mostrar una IP del usuario en su pantalla en un .SWF?

Gracias. :wink:

Por Konfleis

BOFH

1176 de clabLevel

1 tutorial
2 articulos

Genero:Masculino   Bastard Operators From Hell Desarrollador de GAIA

Desde la CerealBox

firefox
Citar            
MensajeEscrito el 05 Oct 2005 11:57 pm
con php y loadvars es fácil, dejame conseguirlo y lo posteo :P

Por Maikel

BOFH

5575 de clabLevel

22 tutoriales
5 articulos

Genero:Masculino   Team Cristalab

Claber de baja indefinida

firefox
Citar            
MensajeEscrito el 05 Oct 2005 11:57 pm
se me olvidaba, que sea en PHP, que cuando se abra le navegador me bote la IP. :P

Por Konfleis

BOFH

1176 de clabLevel

1 tutorial
2 articulos

Genero:Masculino   Bastard Operators From Hell Desarrollador de GAIA

Desde la CerealBox

firefox
Citar            
MensajeEscrito el 05 Oct 2005 11:58 pm
Gracias Maikel. ^^

Por Konfleis

BOFH

1176 de clabLevel

1 tutorial
2 articulos

Genero:Masculino   Bastard Operators From Hell Desarrollador de GAIA

Desde la CerealBox

firefox
Citar            
MensajeEscrito el 06 Oct 2005 12:04 am
Bueno tiene ip y demas :P

codigo AS:

Código :

var php:LoadVars = new LoadVars();
php.load("http://localhost/ip.php");
php.onLoad = function(){
   txt.html = true;
   txt.multiline = true;   
   txt.wordWrap=true;
   txt.htmlText="<p>"+"Tu ip es: "+this.ip+"</p>"; //<-- muestro la ip
   txt.htmlText+="<p>"+"dns y navegador: "+this.dns+"</p>"; 
   txt.htmlText+="<p>"+"SO: "+System.capabilities.os+"</p>";
    txt.htmlText+="<p>"+"Resolucion X:"+System.capabilities.screenResolutionX+"</p>";
    txt.htmlText+="<p>"+"Resolucion Y:"+System.capabilities.screenResolutionY+"</p>";   
    txt.htmlText+="Poder de Flash y PHP"+"</p>";      
}


codigo php:

Código :

<?
   if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; }  
   elseif (isset($_SERVER['HTTP_VIA'])) { $ip = $_SERVER['HTTP_VIA']; }  
   elseif (isset($_SERVER['REMOTE_ADDR'])) { $ip = $_SERVER['REMOTE_ADDR']; }
   else { $ip = "Desconocido"; }
   echo "&ip=$ip."."&dns=".$_SERVER['HTTP_USER_AGENT'];
?>


saludos :)

Por Maikel

BOFH

5575 de clabLevel

22 tutoriales
5 articulos

Genero:Masculino   Team Cristalab

Claber de baja indefinida

firefox
Citar            
MensajeEscrito el 06 Oct 2005 12:26 pm
Muchas gracias Maikel.... experimentaré con el código, y te informaré cualquier cosa.

Gracias ^^ ^^ ^^

Por Konfleis

BOFH

1176 de clabLevel

1 tutorial
2 articulos

Genero:Masculino   Bastard Operators From Hell Desarrollador de GAIA

Desde la CerealBox

firefox
Citar            
MensajeEscrito el 07 Nov 2005 07:42 pm
:) :)


a mi me funciono de maravilla


:) :) :) :) :) :) :) :) :) :)

Por angel

80 de clabLevel



Genero:Masculino  

México, D.F.

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.