Article View: chile.comp.programacion
Article #246Re: Leer sitio web desde php
From: Jos� Miguel Santib��ez
Date: Sat, 03 Oct 2009 20:38
Date: Sat, 03 Oct 2009 20:38
21 lines
2086 bytes
2086 bytes
En el cap�tulo anterior (news:ha81sl$j02$1@news.nivel5.cl), "+mArkO+"
<kitim@porta.com> dijo:
> Estimados, necesito leer un contenido de un sitio web con un script en
> php que hice. intent� con fopen y con file, pero con un sitio en
> especifico no me funciona y se llega al maximo tiempo de ejecucion sin
> obtener resultados. (el sitio web desde el navegador puedo verlo sin
> problemas)
>
> �a que se deber� esto?
> �alguna sugerencia para lograrlo?
>
Usa snoopy: sourceforge.net/projects/snoopy/
eso te permite emular mucho mejor un browser...
(por el tema de los headers, user-agents y afines)
--
Jose M. Santiba�ez A.
<jms@nivel5.cl>
<http://caos.cl/jms>
Technical Details
Message-ID:
<Xns9C99A95A028E1jmsnews@200.54.144.211>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!novia!border2.nntp.dca.giganews.com!nntp.giganews.com!xen.linfati.cl!news.nivel5.cl!news.tie.cl!not-for-mailReferences:
<ha81sl$j02$1@news.nivel5.cl>Show Full Headers
Complete Article Headers
X-Google-Thread: 5075a5d0e4,8a5a386a78263e0b
X-Google-Attributes: gid5075a5d0e4,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!novia!border2.nntp.dca.giganews.com!nntp.giganews.com!xen.linfati.cl!news.nivel5.cl!news.tie.cl!not-for-mail
From: "Jos� Miguel Santib��ez" <jms@nivel5.cl>
Newsgroups: chile.comp.programacion,chile.comp.unix,chile.comp.www
Subject: Re: Leer sitio web desde php
Date: Sat, 3 Oct 2009 20:38:51 +0000 (UTC)
Organization: Caos Consultores
Lines: 21
Message-ID: <Xns9C99A95A028E1jmsnews@200.54.144.211>
References: <ha81sl$j02$1@news.nivel5.cl>
NNTP-Posting-Host: 201-236-179-148.adsl.tie.cl
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: jagger.tie.cl 1254602331 27367 201.236.179.148 (3 Oct 2009 20:38:51 GMT)
X-Complaints-To: news@jagger.tie.cl
NNTP-Posting-Date: Sat, 3 Oct 2009 20:38:51 +0000 (UTC)
User-Agent: Xnews/5.04.25
X-Face: +|NgjgFM{<rs%\Q|vUu16]a6,}?MJTA<!PEEI+x&Gw-Gyq+?$}fvo+.(,-r;)~Qzn)#{{nxU,OT?w^s<7m4ckCJ*L$c#I)yHL7b)GdU*#l