RE: [PHP] Getting https-page

2003-01-20 Thread John W. Holmes
> You can easily get an webpage with: > $fp = fopen("http://www.mydomain.com/";, "r"); > if ($fp) exit; > while(!feof($fp)) > { $line .= fgets($fp, 4096); > } > fclose($fp); > print $line; > > But this doesn't work with https (SSL). How can I get an https-page? Use PHP 4.3.0 with OpenSSL e

RE: [PHP] Getting https-page

2003-01-20 Thread Matthew Walker
PROTECTED]] Sent: Monday, January 20, 2003 7:47 AM To: [EMAIL PROTECTED] Subject: [PHP] Getting https-page Hello! You can easily get an webpage with: $fp = fopen("http://www.mydomain.com/";, "r"); if ($fp) exit; while(!feof($fp)) { $line .= fgets($fp, 4096); } fclose($fp); pr

Re: [PHP] Getting https-page

2003-01-20 Thread Kenneth Brill
I would just read up on the CURL functions and either use them or get CURL and use it externally. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > --- Martin Thoma <[EMAIL PROTECTED]> wrote: > > How can I get an https-page? > > I have never test

Re: [PHP] Getting https-page

2003-01-20 Thread Chris Shiflett
--- Martin Thoma <[EMAIL PROTECTED]> wrote: > How can I get an https-page? I have never tested this myself, but I found this page in the manual: http://www.php.net/manual/en/function.fsockopen.php It has this to say: "As of PHP 4.3.0, if you have compiled in OpenSSL support, you may prefix the

[PHP] Getting https-page

2003-01-20 Thread Martin Thoma
Hello! You can easily get an webpage with: $fp = fopen("http://www.mydomain.com/";, "r"); if ($fp) exit; while(!feof($fp)) { $line .= fgets($fp, 4096); } fclose($fp); print $line; But this doesn't work with https (SSL). How can I get an https-page? Martin -- PHP General Mailing List (h