note 61461 added to wrappers

From: Date: Sat, 04 Feb 2006 05:42:51 +0000
Subject: note 61461 added to wrappers
Groups: php.notes 
Request: Send a blank email to php-notes+get-102955@lists.php.net to get a copy of this message
was wondering with , how to use php://stdout stream. Its very unlikely how the snippet of code didnot work <?php $ch = curl_init("http://www.google.com/"); $fp = fopen("php://stdout", "w") or die("Could not open the file"); curl_setopt($ch, CURLOPT_FILE, $fp); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec($ch); curl_close($ch); fseek($fp,0); echo "<xmp>"; fgets($fp,1024); echo "</xmp>"; fclose($fp); ?> I found this part didnot fetch any HTML tags except the one i have displayed. Just didnot get the reason why it didnot display anything from the output. ---- Server IP: 195.248.191.91 Probable Submitter: 220.227.236.18 ---- Manual Page -- http://www.php.net/manual/en/wrappers.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61461 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61461&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61461&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61461&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61461&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61461&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61461&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61461&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61461&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102955) next »