Hi Vishal
I don't know much about apache to tell you what exactly is going on. But
maybe I can offer some suggestions.
* Frederick Noronha (FN) <[EMAIL PROTECTED]> [2003-07-10 15:46 PST]:
> Vishal, will try to get help from LIH. This is out of my depth. I'm not a
> techie. FN
>
> On Thu, 10 Jul 2003, [iso-8859-1] vishal ruikar wrote:
> > i put one fprintf statment to see the really filter
> >
> > register or not . but sir meg printed in error
> > fiile .
> > that mean it evocks the register_hook but i
> > can't say anything
> > after that what is going to happen with my code
> > apr_bucket *e, *n;
> > request_rec *r = f->r;
> > conn_rec *c = r->connection;
> > char *date_val;
> > apr_size_t len ;
> > char *buff ;
> > buff=apr_bucket_alloc(len, c->bucket_alloc);
> >
> > fprintf(stderr,"hello vishal , we r now in
> > footer handler ");
I am assuming that since this is a apache filter, the web server will
redirect the stdout and stderr to someplace. From you email too, that is
what it looks like.
There might be line buffering stuff going on. Try appending an \n you your
string "we r now in footer handler\n";
^^^
If there is any uncertainity about that process of apache logging or
settings in apache, you can open another file via fopen/open from your
program and you could write something there.
Was this your main question? If not, ask again and I'll try.
Also, as a side note, maybe you could replace the following
> > buff[0]='v';
> > buff[1]='i';
> > buff[2]='s';
> > buff[3]='h';
> > buff[4]='a';
> > buff[5]='l';
with
buff = "vishal";
Hope this helps, somewhat.
Aseem.
> > if(!strncasecmp(f->r->content_type,
> > "text/html", 9))
> > {
> > e=APR_BRIGADE_LAST(bb);
> > if (APR_BUCKET_IS_EOS(e))
> > {
> >
> > n= apr_bucket_pool_create(buff
> > ,len,f->r->pool , f->c->bucket_alloc );
> > APR_BUCKET_INSERT_BEFORE(e, n);
> > apr_table_unset(f->r->headers_out,
> > "ETag");
> > apr_table_unset(f->r->headers_out,
> > "Last-Modified");
> > }
> > }
> > ap_pass_brigade(f->next, bb);
> > return APR_SUCCESS;
> > }
> > static void footer_register_hook(apr_pool_t *p)
> > {
> > fprintf(stderr,"hello vishal , we r now in
> > register hook ");
> > ap_register_output_filter("FOOTERFILTER",
> > footer_filter,NULL, AP_FTYPE_CONTENT_SET);
> > }
> > module AP_MODULE_DECLARE_DATA footer_module =
> > {
> > STANDARD20_MODULE_STUFF,
> > NULL,
> > NULL,
> > NULL,
> > NULL,
> > NULL,
> > append_register_hook
> > };
> >
> >
> > so sir plz help me ..
> >
> > vishal ruikar
> >
> >
> >
> >
> >
> >
> >
> >
> > ________________________________________________________________________
> > Send free SMS using the Yahoo! Messenger. Go to http://in.mobile.yahoo.com/new/pc/
> >
>
> --
> -------------------------------------------------------------------------
> Frederick Noronha (FN) | http://www.fredericknoronha.net
> Freelance Journalist | http://www.bytesforall.org
> http://goalinks.pitas.com | http://joingoanet.shorturl.com
> http://linuxinindia.pitas.com | http://www.livejournal.com/users/goalinks
> -------------------------------------------------------------------------
> T: 0091.832.2409490 or 2409783 M: 0 9822 122436
> -------------------------------------------------------------------------
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Parasoft
> Error proof Web apps, automate testing & more.
> Download & eval WebKing and get a free book.
> www.parasoft.com/bulletproofapps1
> _______________________________________________
> linux-india-help mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/linux-india-help
--
"Where the clear stream of reason has not lost its way into the dreary
desert sand of dead habit" -- Geetanjali
-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help