note 61461 rejected from wrappers by sp

From: Date: Sat, 04 Feb 2006 10:13:12 +0000
Subject: note 61461 rejected from wrappers by sp
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-102975@lists.php.net to get a copy of this message
Note Submitter: ravi dot pandey at yahoo dot com ---- 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.

« previous php.notes (#102975) next »