Foros del Web » Programando para Internet » PHP »

Problema Código PHP y Servidor

Estas en el tema de Problema Código PHP y Servidor en el foro de PHP en Foros del Web. Hola, estoy subiendo mi aplicación al servidor y pongo esto: Código HTML: <!DOCTYPE html> <html lang= "en" > <head> <title> Prueba </title> </head> <body> <?php ...
  #1 (permalink)  
Antiguo 02/02/2012, 17:22
 
Fecha de Ingreso: julio-2008
Mensajes: 12
Antigüedad: 15 años, 9 meses
Puntos: 1
Problema Código PHP y Servidor

Hola, estoy subiendo mi aplicación al servidor y pongo esto:
Código HTML:
<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Prueba</title>
    </head>
    <body>
	<?php
	
	echo "Prueba";
	?>
    </body>
</html> 
y el codigo fuente que devuelve es esto:
Código HTML:
<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Prueba</title>
    </head>
    <body>
	<!--?php
	
	echo "Prueba";
	?-->
    </body>
</html> 
Alguien sabe porque pasa esto? El servidor se supone que tiene php....

Gracias!
  #2 (permalink)  
Antiguo 02/02/2012, 17:41
Avatar de pateketrueke
Modernizr
 
Fecha de Ingreso: abril-2008
Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años
Puntos: 2534
Respuesta: Problema Código PHP y Servidor

¿Y la extensión de tu archivo es .php?
__________________
Y U NO RTFM? щ(ºдºщ)

No atiendo por MP nada que no sea personal.

Etiquetas: html, servidor
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta

SíEste tema le ha gustado a 1 personas




La zona horaria es GMT -6. Ahora son las 17:30.