Ver Mensaje Individual
  #16 (permalink)  
Antiguo 08/11/2011, 13:49
super_rayo
 
Fecha de Ingreso: abril-2011
Mensajes: 169
Antigüedad: 13 años
Puntos: 4
Respuesta: Crear página PHP automáticamente

Haber, una cosa más quisiera preguntar una cosa más. ¿Cómo puedo incluir en ese documento html y php?

¿Bastaría con poner exclusivamente el código? No, ¿verdad? Es decir no podría poner:

Código PHP:
Ver original
  1. <?php
  2. file_put_contents('asdf.php', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>Asdf document</title>
  7. </head>
  8.  
  9. <body>
  10. <span color="c8c8c8">Esto es una prueba...</span>
  11. // e incluir también php por aquí...
  12. </body>
  13. </html>');
  14. ?>

Bueno, ¿cómo lo haría? Gracias de nuevo.
__________________
MiniMonigotes.com | Juegos flash online gratis - ¡Entra ya!