Zend server php in css file not working

0

Posted by nick | Posted in Uncategorized | Posted on Jan 14 2010

Tags:

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.

  • Share/Bookmark

Write a comment