note 53636 deleted from function.curl-setopt by crell
| From: | crell@php.net | Date: | Thu, 31 Mar 2022 20:55:33 +0000 |
| Subject: | note 53636 deleted from function.curl-setopt by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-217979@lists.php.net to get a copy of this message | ||
Note Submitter: phpnet at andywaite dot com
----
After setting CURLOPT_FILE, you may want want to revert back to the normal behaviour of displaying
the results. This can be achieved using:
<?php
$fp = fopen ("php://output", "w") or die("Unable to open stdout for
writing.\n");
curl_setopt($ch, CURLOPT_FILE, $fp);
?>