
Fleon xD
Posted 27 July 2009 - 02:36 PM
Posted 30 July 2009 - 02:19 PM
Posted 30 July 2009 - 02:23 PM
Posted 30 July 2009 - 02:33 PM
Posted 31 July 2009 - 04:43 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="es"> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> </head> <body> <iframe src="http://www.myurl.com" width=450 height=300></iframe> < iframe src="otra_pagina.html" width=450 height=300>< /iframe > <h1>Este es un documento de prueba.</h1> <iframe src="http://www.myurl.com" width=200 height=200> <!--Contenido visto por browsers que NO soportan el tag <iframe>--> <a href="http://www.myurl.com">Click aquí para cargar MyUrl</a> </iframe> </body> </html>
<?php $nom_archivo='documento.txt'; //Abre el archivo para cargarlo en memoria //Se utiliza una expresión regular para reemplazar el contenido $nuevo=preg_replace("/<(\s*iframe(.*?))>(.*?)<\s*\/iframe\s*>/is", '<!-- iframe remplazado automáticamente -->', $contenido); echo $nuevo; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="es"> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> </head> <body> <!-- iframe remplazado automáticamente --> <!-- iframe remplazado automáticamente --> <h1>Este es un documento de prueba.</h1> <!-- iframe remplazado automáticamente --> </body> </html>
<iframe> < iframe> < iframe> <iframe > <iframe src="http://www.myurl.com" width=450 height=300> etc...
</iframe> < /iframe> < /iframe> </iframe > etc...