Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15537 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74651 invoked by uid 1010); 22 Mar 2005 13:24:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 74636 invoked from network); 22 Mar 2005 13:24:08 -0000 Received: from unknown (HELO picorp.com) (127.0.0.1) by localhost with SMTP; 22 Mar 2005 13:24:08 -0000 X-Host-Fingerprint: 82.165.243.91 u15170962.onlinehome-server.com Linux 2.4/2.6 Received: from ([82.165.243.91:44831] helo=picorp.com) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id 54/DC-36163-77C10424 for ; Tue, 22 Mar 2005 08:24:07 -0500 Received: (qmail 10198 invoked by uid 2020); 22 Mar 2005 13:24:04 -0000 Received: from unknown (HELO ?172.16.143.82?) (arjun@164.164.12.120) by u15170962.onlinehome-server.com with (DHE-RSA-AES256-SHA encrypted) SMTP; 22 Mar 2005 13:24:04 -0000 Message-ID: <42401CE6.4030301@picorp.com> Date: Tue, 22 Mar 2005 18:55:58 +0530 User-Agent: Mozilla Thunderbird 0.7.1 (X11/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: php-dev Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: php streams - generating the http header From: arjun@picorp.com (Arjun Jain) Hi everyone, Back Again :). I tried searching around, but all in vain. My question is that how do i use the php stream to generate my custom header and then write to it the corresponding file? I could get that php_stream *stream need to be created and then php_stream_write needs to be used to write to it. But how do I open the stream? Basically I want to write a file to the browser, say a .png file from my extension. I can not use the header() function of php. And even if i use it, how do i send the png file to the browser. I would prefer not using the header() funcion and write my own header. Any pointers please? Thanking you in advance. Regards, aj http://arjun.notlong.com