Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/10/2006, 19:43
Avatar de ASCENDEDMASTERS
ASCENDEDMASTERS
 
Fecha de Ingreso: julio-2005
Ubicación: Pergamino, Buenos Aires
Mensajes: 302
Antigüedad: 18 años, 9 meses
Puntos: 1
Un ejemplo simple con variables en un templete html (te va a servir mucho, lo tome del segundo comentario de la pagina oficial de php en la seccion variables http://ar2.php.net/manual/es/language.variables.php ):
Código PHP:
El codigo PHP:
variables.php:
<?php
$SYSN
["title"] = "This is Magic!";
$SYSN["HEADLINE"] = "Ez magyarul van"// This is hungarian
$SYSN["FEAR"] = "Campanas en mi corazon";
?>

index.php:
<?php
include("variables.php");
include(
"templete.html");
?>

El templete:
templete.html

<html>
<head><title><?=$SYSN["title"]?></title></head>
<body>
<H1><?=$SYSN["HEADLINE"]?></H1>
<p><?=$SYSN["FEAR"]?></p>
</body>
</html>
esto es simple, practico y rapido.
__________________
Dios es la unica fuente de todo bien.