Zend server php in css file not working

0

I setup a local test environment using Zend Server at my new job and copied the VirtualHosts from the live server, which is apache on linux, and put them in the httpd-vhosts.conf file that came with Apache 2.2 in Zend Server.  The simple solution to be able to use php inside of the css file is to do the following

AddType application/x-httpd-php .php .css

Unfortunately, that didn’t work.  However, after a few hours I did find a solution.  In the httpd.conf file, find the following line

AddHandler zend-enabler-script .php

And change to -

AddHandler zend-enabler-script .php .css

I restarted apache and it now works.

Posted in: Uncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *

*




You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">