Il 15:10, mercoled? 08 febbraio 2006, Roberto Starnini ha scritto:
> HI,
>
> I understood the bug: the file x_load.php must have extention .phtml
> otherwise on linux does not work!

I would'nt call it a bug, this is indeed a feature :)  
... and it's fully customizable.

You can configure apache to handle a particular file extension with a 
particular resource handle, for example:

AddType application/x-httpd-php .php
# Enable cgi
AddType application/x-httpd-php-cgi .phtml

Action application/x-httpd-php-cgi /cgi-bin/php

This way you could use apache the faster dso mod_php for *.php scripts and 
standard CGI (or better FASTCGI) for all *.phtml scripts.

You could even use two different PHP builds/versions for the two group of 
scripts.

This is normally done beacause of thread safety issues concerning 
php_mapscript implementation.

BTW this is only a production environment problem, for developement, the dso 
is ok.

Hope it helps.

-- 
Alessandro Pasotti
ICQ# 245871392
Linux User #167502


Reply via email to