Re[2]: [PHP-ES] RE: Parsear Htmls
| From: | Jorge Catena | Date: | Thu, 23 Aug 2001 23:41:50 +0000 |
| Subject: | Re[2]: [PHP-ES] RE: Parsear Htmls | ||
| References: | 1 2 3 4 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-13215@lists.php.net to get a copy of this message | ||
Hello Angel,
El problema con los iframe es que con el vendito NS no funciona, asi
que lo tengo que descartar.
De todas maneras, probe con ese .htaccess y anduvo de mil maravillas
:)
Parsea los .html como si fueran .php sin ningun problema.
De todas maneras, muchiiiiiiiiiiiiiiiisimas gracias :)
--
Best regards,
Jorge Catena
catena4@infovia.com.ar
AF> Dijous 23 Agost 2001 16:27, Jorge Catena dixit:
>> El tema es que necesito que apache haga un include dentro de un html.
>> Y si no creo ese .htaccess no va a parsear los html.
>> Alguien tiene una mejor solucion?
AF> Puedes usar un elemento <iframe> de html4, pero no está soportado por todos
AF> los navegadores, en concreto netscape 4.x no soporta iframes:
AF> http://html.conclase.net/w3c/html401-es/present/frames.html#edef-IFRAME
AF> En teoria tambien se tendría que poder incluir *cualquier-cosa* mediante el
AF> elemento <object> de html4, pero hace un tiempo hice pruebas para incluir la
AF> salida de un programa php en un un archivo html y no me funcionó :(, si
AF> quieres intentarlo tú...:
AF> http://html.conclase.net/w3c/html401-es/struct/objects.html#edef-OBJECT
AF> Otra forma de hacerlo, los programas en php normalmente generan html, pero
AF> nada impide que generen otros tipos de datos, como imágenes o ... javascript.
AF> Puedes hacer esto en tu código html:
AF> <html>
AF> <head></head>
AF> <body>
AF> Esta línea es del html<br>
AF> <script src="tuprograma.php" type="text/javascript"></script>
AF> Esta línea también es del html
AF> </body>
AF> </html>
AF> Y en el código tu programa php haces algo así:
AF> <?
AF> echo "document.write('Esta línea es del php!!<br>');";
?>>
AF> El resultado será:
AF> Esta línea es del html
AF> Esta línea es del php!!
AF> Esta línea también es del html
AF> Saludos
AF> Àngel
AF> ---------------------------------------------------------------------
AF> Archivo On-line: http://www.phpes.com/
AF> Manual PHP en español: http://www.php.net/manual/es/
AF> Para dar de baja la suscripción, mande un mensaje a:
AF> lista-unsubscribe@phpes.com