Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Savin webpages
February 23, 2006, 6:26 pm
rate this thread
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
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
Re: Savin webpages
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
Obviously this wouldn't be as good as using cURL