Austin <austi@atlas.cz>: > proste abych mnel jejich zdrojovy HTML v nejake promenne... > ale ma to jeste jeden hacek, ty stranky jsou zaheslovány pomocí PHP > autentifikace - jmeno a heslo mam :) Zalezi na tom, jak je ta autorizace udelana, ale IMHO by to mohlo jit. Proste si otevres spojeni pomoci fsockopen a dal uz se tvuj PHP script bude chovat jako prohlizec. Prostuduj si hlavne ty komentare, treba uz to nekdo resil. http://cz.php.net/manual/cs/function.fsockopen.php Hmm, ja to udelal a co jsem nenasel (ale je tam vic prikladu, zalezi na tom, jak je ta autorizace udelana!): To emulate a web browser with PHP using socket functions, there is a very good class to do this: http://sourceforge.net/projects/snoopy/ Some of its features: * easily fetch the contents of a web page * easily fetch the text from a web page (strip html tags) * easily fetch the the links from a web page (add a filter for "mailto:" links and you can easily fetch e-mail addresses). * supports proxy hosts * supports basic user/pass authentication * supports setting user_agent, referer, cookies and header content * supports browser redirects, and controlled depth of redirects * expands fetched links to fully qualified URLs (default) * easily submit form data and retrieve the results * supports SSL and frames -pp21-
This archive was generated by hypermail 2.1.3 : 07. 12. 2003, 17:38 CET