
16/06/2002, 03:02
|
| | Fecha de Ingreso: septiembre-2001 Ubicación: Monterrey
Mensajes: 663
Antigüedad: 23 años, 4 meses Puntos: 6 | |
Re: Script que "chjupe" los titulares de una web No se que tanta experiencia tengas con php pero lo que necesitas hacer lo podriamos resumir de la siguiente forma:
1.- leer la pagina remota con fopen o mediante fsockopen
2.- leer el contenid buscando algo que te permita identificar el inicio de la noticia y el final para esto te remociendo el uso de expresiones regulares ya se las basadas en per o POXIS.
Para el punto 1 lamentablemente vas a necesitar leer esta seccion del manual:
http://www.php.net/manual/en/ref.filesystem.php
<a href='ir.asp?http://www.php.net/manual/en/ref.network.php' target='_blank'>http://www.php.net/manual/en/ref.network...</a>
Para la segunda seccion tambien necesitas leer esta parte:
<a href='ir.asp?http://www.php.net/manual/en/ref.regex.php' target='_blank'>http://www.php.net/manual/en/ref.regex.p...</a>
<a href='ir.asp?http://www.php.net/manual/en/ref.pcre.php' target='_blank'>http://www.php.net/manual/en/ref.pcre.ph...</a>
Saludos!.
Mty. NL. |