You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Daniel Stark <ds...@mac.com> on 2004/02/09 20:41:43 UTC
[users@httpd] Piping one modules response to another module
I am trying to figure out a way to send the response of a FileMaker
apache module through my php module before returning the result to the
client. I figure that there must be a way to pipe two modules together,
but a web/archive search didn't turn up anything that popped out at me.
Here's some background information.
The FileMaker module is triggered by location...
<Location /FMPro>
SetHandler fmwsc
</Location>
<Location /FMPJS>
SetHandler fmwsc
</Location>
<Location /fmres>
SetHandler fmwsc
</Location>
etc
An example of a URL that is sent through the FileMaker module
<http://mainserver/FMPro?-db=employees.fp5&-format=detail.html&-
lay=detail&-sortfield=unsorted&Shift=Full%20Time&-max=5&-recid=2&-find>
The module essentially retrieves a html document from another server
(that is running the employees database) that has been parsed by that
other server to replace tags with data.
php seems to be triggered by file extensions...
ie
AddType application/x-httpd-php .php
---
Is there a way to prevent apache from sending the response from the
FileMaker module and instead route it through the php module first? I'm
looking for a way to do it where I won't have to modify URLs that are
used today. It seems that a simple way would be to make a custom perl
handler that curled the FileMaker part and then ran the result through
php but this would seem to require that I use two different locations
/FMPro vs /BackEndFMPro to avoid an infinite loop.
TIA,
Dan
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Piping one modules response to another module
Posted by Joshua Slive <jo...@slive.ca>.
On Mon, 9 Feb 2004, Daniel Stark wrote:
> I failed to specify that I am not yet using Apache 2.
>
> On Feb 9, 2004, at 1:48 PM, Joshua Slive wrote:
> > Apache 2 filters are designed to allow this. But php does not work as
> > a
> > filter, because its core design (Zend) has too many assumptions about
> > reading from disk. So you can't do this as far as I know.
Then you can't do it for two different reasons, rather than just one.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Piping one modules response to another module
Posted by Daniel Stark <ds...@mac.com>.
I failed to specify that I am not yet using Apache 2.
Thanks,
Dan
On Feb 9, 2004, at 1:48 PM, Joshua Slive wrote:
>
> On Mon, 9 Feb 2004, Daniel Stark wrote:
>
>> I am trying to figure out a way to send the response of a FileMaker
>> apache module through my php module before returning the result to the
>> client. I figure that there must be a way to pipe two modules
>> together,
>> but a web/archive search didn't turn up anything that popped out at
>> me.
>
> Apache 2 filters are designed to allow this. But php does not work as
> a
> filter, because its core design (Zend) has too many assumptions about
> reading from disk. So you can't do this as far as I know.
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Piping one modules response to another module
Posted by Joshua Slive <jo...@slive.ca>.
On Mon, 9 Feb 2004, Daniel Stark wrote:
> I am trying to figure out a way to send the response of a FileMaker
> apache module through my php module before returning the result to the
> client. I figure that there must be a way to pipe two modules together,
> but a web/archive search didn't turn up anything that popped out at me.
Apache 2 filters are designed to allow this. But php does not work as a
filter, because its core design (Zend) has too many assumptions about
reading from disk. So you can't do this as far as I know.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org