1
Here's a sample of the code below. I've double checked the syntax (and did catch an error the first time around), but what's happening now doesn't quite seem like a syntax error. Basically, when I put the PHP code in the source of theme.html, it gets output on the final pagein the code as though it didn't get executed, just printed. So here's a sample of what I'm inputting...and when I view the pace, the source looks exactly like this:
CODE:
<td align="left">
<?php
$here = $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'];
if(strpos($here, 'modules/news')===true) {
// News/home page.
$box = 'box-home.swf';
$image = '';
} else {
// Default page.
$box = 'box-home.swf';
$image = 'Rene_Antonio_Intro.swf';
}
?>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/swflash.cab#version=6,0,29,0" width="222" height="197">
<param name="movie" value="http://dev.yellowdress.net/rene/themes/rene_v2_4//flash/<?php echo $box; ?>" " />
<param name="quality" value="high" />
<embed src="http://dev.yellowdress.net/rene/themes/rene_v2_4//flash/<?php echo $box; ?>" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="222" height="197"></embed>
</object>
</td>
CODE:
<td align="left">
<?php
$here = $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'];
if(strpos($here, 'modules/news')===true) {
// News/home page.
$box = 'box-home.swf';
$image = '';
} else {
// Default page.
$box = 'box-home.swf';
$image = 'Rene_Antonio_Intro.swf';
}
?>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/swflash.cab#version=6,0,29,0" width="222" height="197">
<param name="movie" value="http://dev.yellowdress.net/rene/themes/rene_v2_4//flash/<?php echo $box; ?>" " />
<param name="quality" value="high" />
<embed src="http://dev.yellowdress.net/rene/themes/rene_v2_4//flash/<?php echo $box; ?>" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="222" height="197"></embed>
</object>
</td>