You are here: Re: Savin webpages « PHP Programming Language « IT news, forums, messages
Re: Savin webpages

Posted by Al Binns on 02/23/06 21:23

Netko wrote:
> Hi.
>
> I am new to php, and i would like to ask you how can i save some
> webpage(source code) in a file?
>
> I know how to do it with http sites, but i cant get it to work with https
> sites
> I was trying to use cURL, but for some reason i cant get whole webpage into
> fil, but only a part.
>
> So can someone write example how to catch webpage source and put it in to
> file?

Well if cURL isn't working for you then you could roll your own using
fsockopen to create a http socket, send the appropriate headers then
read the response like a normal file handle. Check fsockopen() for
examples...

Obviously this wouldn't be as good as using cURL

Al

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация