Zend server php in css file not working
0I 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.
Hi I'm Nick Bartlett and thanks for visiting my blog. I'm not much of a writer; many of my posts are short and to the point while others are meant to be a reference for myself and other web developers.