Author |
|
martinorth
Joined: 24 Apr 2006 Posts: 3
|
Posted: Mon 24 Apr '06 21:39 Post subject: How to configure apache to run php as an output filter? |
|
|
I want to combine adobes coldfusion and php. First the apache server should execute the jrun-handler, after doing that an output filter should parse the result for php code and executes it. I run apache 2.0.55 on windows. How is this possible? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 25 Apr '06 11:09 Post subject: |
|
|
i don't know you CF works. does it run as cgi? It is not possible to run to handelers one after one. If CF runs als cgi you can call the cgi from PHP with exec(); and work with the output. |
|
Back to top |
|
martinorth
Joined: 24 Apr 2006 Posts: 3
|
Posted: Tue 25 Apr '06 11:20 Post subject: |
|
|
James Blond wrote: | i don't know you CF works. does it run as cgi? It is not possible to run to handelers one after one. If CF runs als cgi you can call the cgi from PHP with exec(); and work with the output. |
The apache coldfusion module is implemented as a handler with the Addhandler directive within httpd.conf. I want to run php as an output filter but this does not work for me. An output filter runs after the handler is executed(I think so). Does anybody else tried to do this? Maybe with asp and php? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 25 Apr '06 11:53 Post subject: |
|
|
You can not run two handlers. What do you want to do with PHP after the CF processing? What does your PHP script do? If there is a script or does CF create the PHP files? |
|
Back to top |
|
martinorth
Joined: 24 Apr 2006 Posts: 3
|
Posted: Tue 25 Apr '06 12:34 Post subject: |
|
|
James Blond wrote: | You can not run two handlers. What do you want to do with PHP after the CF processing? What does your PHP script do? If there is a script or does CF create the PHP files? |
CF should generate php code for using phpadsnew to show ads. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 25 Apr '06 12:38 Post subject: |
|
|
Can't you create the PHP with PHP it self and the use eval() for executing?
Got a new Idea, but don't know if that works. in PHP.ini you can set a prepend page. Maybe you can use there the CF page.
A nother Idea is to create the PHP page with CF and then goto the page meta refresh.
Hm, phpadsnew is PHP why not call it in a iframe? So you can use CF and PHP. |
|
Back to top |
|