|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-07-30 17:05 UTC] sterling@php.net
[2001-07-30 17:05 UTC] sterling@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 11:00:01 2025 UTC |
Hi Sterling Hughes, the follow code from php doku doesnt work with the current cvs version: ----- $ch = curl_init ("http://www.php.net/"); $fp = fopen ("php_homepage.txt", "w"); curl_setopt ($ch, CURLOPT_FILE, $fp); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_exec ($ch); curl_close ($ch); fclose ($fp); ----- ... produce an output like "HTTP/1.1 200 OK" !without! any print or echo and the file php_homepage.txt is empty. I think it's a problem with "CURLOPT_WRITEHEADER", because if i set this option, the script work fine. my config: "libcurl 7.8 (OpenSSL 0.9.6a) (ipv6 enabled)" Regards, -- Steve Alberty