cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans ...@domek.be>
Subject Re: compiling php
Date Thu, 30 Jun 2005 07:29:37 GMT

Adriano Smith wrote:
> If a php file is called in the pipeline as a generator will the file be
> compiled or just displayed as it is? is it possible to mention somwhwre
> that the php is to be compiled and executed. i wish to call a php file
> thro cocoon pipleline. if it is called normally outside cocoon it
> compiles. 

2 scenarios AFAIU

1) you access the php through your local filesystem ie
<map:generate src="/path/to/my.php"/>

In this case your php won't be executed ofcourse and cocoon retrieves
the contents of your php file (ie the script itself)

2) you access it through a php-enabled webserver ie
<map:generate src="http://php.server/my.php"/>

In this case your php script will be executed and cocoon retrieves the
*output* of the script into the pipeline.


HTH
Jorg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message