note 53636 modified in function.curl-setopt by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 17:31:39 +0000 |
| Subject: | note 53636 modified in function.curl-setopt by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154994@lists.php.net to get a copy of this message | ||
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);
?>
--was--
After setting CURLOPT_FILE, you may want want to revert back to the normal behaviour of displaying
the results. This can be achieved using:
$fp = fopen ("php://output", "w") or die("Unable to open stdout for
writing.\n");
curl_setopt($ch, CURLOPT_FILE, $fp);
http://php.net/manual/en/function.curl-setopt.php