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
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 theheader()
function of php.
And even if i use it, how do i send the png file to the browser.
I would prefer not using theheader()
funcion and write my own
header.Any pointers please? Thanking you in advance.
Regards,
aj
http://arjun.notlong.com