[Solved] custom PHP code in template will not parse
Posted: Fri Oct 26, 2007 6:10 pm
I've got an issue that I'm pulling my hair out over that someone out there probably has an easy solution for.
Briefly, I'm trying to implement a great PHP solution for rendering PNG 24 alpha transparency in IE 6.0 and earlier from here http://koivi.com/ie-png-transparency/
I insert this code at the beginning of the file:
And this at the end:
It works great when I create a static PHP page and upload it, However, when I serve this up as a CMSMS template the PHP graphic function doesn't work.
What's even stranger to me, is that when I view the page source then cut and paste the code and upload it as a static page it works.
Has anyone run into this before or do you have any ideas on why this is happening? Might is have something to do with my mod rewrite?
Out of desperation I tried wrapping the PHP code in {literal}{/literal} tags but it made no difference.
Thanks in advance.
Briefly, I'm trying to implement a great PHP solution for rendering PNG 24 alpha transparency in IE 6.0 and earlier from here http://koivi.com/ie-png-transparency/
I insert this code at the beginning of the file:
Code: Select all
<?php ob_start(); ?>Code: Select all
<?php
include_once 'replacePngTags.php';
echo replacePngTags(ob_get_clean());
?>It works great when I create a static PHP page and upload it, However, when I serve this up as a CMSMS template the PHP graphic function doesn't work.
What's even stranger to me, is that when I view the page source then cut and paste the code and upload it as a static page it works.
Has anyone run into this before or do you have any ideas on why this is happening? Might is have something to do with my mod rewrite?
Out of desperation I tried wrapping the PHP code in {literal}{/literal} tags but it made no difference.
Thanks in advance.