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!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php