|
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]
|