Re: php streams - generating the http header

From: Date: Tue, 22 Mar 2005 13:45:50 +0000
Subject: Re: php streams - generating the http header
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-15538@lists.php.net to get a copy of this message
Hi, Have a look at main/SAPI.c for the function sapi_header_op PHP_FUNCTION(header)in ext/standard/head.c With reagrds Kamesh Jayachandran On Tue, 22 Mar 2005 18:55:58 +0530, "Arjun Jain" <arjun@picorp.com> said: > 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.internals (#15538) next »