Ver Mensaje Individual
  #15 (permalink)  
Antiguo 13/11/2011, 16:35
thezzin
 
Fecha de Ingreso: septiembre-2008
Mensajes: 350
Antigüedad: 15 años, 7 meses
Puntos: 31
Respuesta: Insertar codigo php dentro de html

Cita:
Iniciado por privatefta Ver Mensaje
aver si hay alguna forma de poder hacer esto posible es que tengo esto

index.html

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  4. <title>Ejemplo</title>
  5. </head>
  6. Bienvenido a la Zona Preferida <br />
  7. Tu Ip es: <? echo $_SERVER["REMOTE_ADDR"];?>
  8. </body>
  9. </html>

pero no me funciona el php hay alguna forma de hacerlo posible



ya días vi tu tema creí que ya te avían dicho como Ejecutar código .php dentro de un File .html
como ya te lo sugirieron antes
Agrega esto: Addhandler application/x-httpd-php .html .php al File httpd.conf de apache-Server o si no eres el administrador del servidor. entonces al file: .htaccess

y ya con eso podes ejecutar el código php en tu index.html
__________________
╬-----╬
║☺₧☻║
╬-----╬