Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/10/2014, 02:59
yitiel
 
Fecha de Ingreso: octubre-2014
Mensajes: 5
Antigüedad: 9 años, 6 meses
Puntos: 0
combinar php y html

Hola, no entiendo mucho de programación y tengo unos códigos que necesito depurar para que funcionen bien.
tengo un código php de tiempo:

$startTime = strtotime("9:00");
$endTime = strtotime("15:00");
$now = time();
if ( ($now < $startTime) || ($now > $endTime)) {
// imprimes links
}

Si se cumple el "if" entonces kiero que me cargue el siguiente html:
<html>
<head><title>Demo of VLC mozilla plugin</title></head>
<body>
<h1>Cámara Web</h1>
<embed type="application/x-vlc-plugin"
name="video1"
autoplay="yes" loop="no" volume="20" width="700" height="500"
target="videostream.asf?user=&pwd=&resolution=32&r ate=" />
</body>
</html>

Es posible unirlos los dos en un mismo script?
Thanks! ;)