Hi,
I've written a PHP application, which I'm now trying to install on a client's server which has been set up with PHP in cgi mode. I've tested and used it on servers set up with PHP as an Apache module and it has worked with no problem.
My application relies on css and js files being interpreted by PHP, which is achieved by using:
AddHandler application/x-httpd-php .css
AddHandler application/x-httpd-php .js
in an .htaccess file in the root folder.
As I said, this works fine when PHP is running as a module, but not when it is running in cgi mode. The css and js files do get returned, but they just don't get interpreted, so the raw php code is still in the files when they get to the browser.
I've tried everything I can think of to try to get them to be interpreted by PHP, but I've run out of ideas. So, could anyone give me any ideas as to how to get the css and js files to be interpreted by PHP when it is in cgi mode, please?
Debbie