Re: Can't get HTTPS -- driving me mad -- please help

From: Date: Tue, 21 Jan 2003 16:48:49 +0000
Subject: Re: Can't get HTTPS -- driving me mad -- please help
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-132454@lists.php.net to get a copy of this message
This seems to have fixed the problem :-) But there's another error. fopen works now, but fgets won't. I'm getting this error: Warning: fgets() [function.fgets]: SSL: fatal protocol error in blah\blah\blah.php on line 51 Does anyone know what could be causing this? > PHP 4.3.0, Apache, Win32. > > Here's the error message I get using > fopen("https://[securewebsite]", "r"); > > Warning: fopen(https://blahblahblah) [function.fopen]: failed to create > stream: No such file or directory in blah\blah\blah.php on line 50 Hi Jonathan, Don't know what the problem is, but other people seem to have the same problem. Read the user note on the bottom of this page: http://uk.php.net/manual/en/wrappers.php Hope this helps; JOn =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- "Jonathan Boles" <jaboles@ihug.com.au> wrote in message news:000f01c2c16a$ea4b6920$5c8dadcb@grayw... > Do you mean allow_url_fopen? It is set to 'on'. There's no fopen_wrapper > setting > > Reading from http:// using fopen works fine. It's the > https:// that doesn't > work. > > ----- Original Message ----- > From: "Stephan Seidt" <blizz@0x03.net> > To: "Jonathan Boles" <jaboles@ihug.com.au> > Cc: <php-general@lists.php.net> > Sent: Wednesday, January 22, 2003 3:02 AM > Subject: Re: [PHP] Can't get HTTPS -- driving me mad -- please help > > > > Is fopen_wrapper in php.ini set to yes ? > > > > Jonathan Boles wrote: > > > PHP 4.3.0, Apache, Win32. > > > > > > I'm driving myself mad trying to work out why I can't get HTTPS pages. I > > > understand there are two options, using fopen() with openssl installed, > and > > > using curl. I've installed openssl extension, but using fopen STILL > won't > > > work. Don't have a clue why. Using curl, I can get the page easily > enough, > > > but I can't put it into the file. If I try to set a file resource to > save it > > > to, Apache crashes. > > > > > > Here's the error message I get using > > > fopen("https://[securewebsite]", > "r"); > > > > > > Warning: fopen(https://blahblahblah) [function.fopen]: failed to create > > > stream: No such file or directory in blah\blah\blah.php on line 50 > > > > > > > > > > > > And when I try to use Curl to save the https file, I get this: > > > > > > APACHE caused an invalid page fault in > > > module KERNEL32.DLL at 0187:bff7b9a6. > > > Registers: > > > EAX=00000000 CS=0187 EIP=bff7b9a6 EFLGS=00000246 > > > EBX=02af796c SS=018f ESP=0167f398 EBP=0167f3b0 > > > ECX=00fe6770 DS=018f ESI=7803b730 FS=19a7 > > > EDX=7803b710 ES=018f EDI=100be740 GS=0000 > > > Bytes at CS:EIP: > > > ff 76 04 e8 13 89 ff ff 5e c2 04 00 56 8b 74 24 > > > Stack dump: > > > 00000032 00fd5131 7803b730 00fd523b 7803b710 00000032 00000001 00fc1ee8 > > > 00ff48ac 00000001 00000032 7803b710 00000032 00ff4240 00ff48ac 00ff4801 > > > > > > > > > Here is the code I'm using at that section: > > > > > > $ch = curl_init ("https://blahblahblah"); > > > $fp = fopen ("output.txt", "w"); > > > curl_setopt ($ch, CURLOPT_FILE, $fp); > > > curl_setopt ($ch, CURLOPT_HEADER, 0); > > > curl_exec ($ch); > > > $ce = curl_error($ch); > > > curl_close ($ch); > > > fclose ($fp); > > > > > > > > > > > > This is really driving me mad, someone please help :-( > > > > > > > > > > > > > > > > > > > > > -- > > IPv6 + TCPA + wrecked Palladium server = NO COFFE! > > > > >

« previous php.general (#132454) next »