(I hoped the keywords in this title tag might help someone else
)
I read this entry on php global variables but I think it won’t quite apply to the php I’m using. I’m going to paste you my code below.
What happens is the page basically “shows” the embed tags, so they are not getting parsed. . On this template below, I have ‘allow php” set to yes, and to the input stage. In the includes/applications_segment3 I have the same settings. My other embeds do NOT have php allowed. I’ve put up a test page for you here:
http://www.cobaltcfd.com/index.php/site/applications_test/dod_hpc_challenge
Is there any way to get this php to work and also have my embeds all parsed, too? What the php is meant to affect is content in the applications_segment3 file (embedded video object).
<?php
ob_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Applications and Demonstrations of Cobalt Software | Cobalt Solutions</title>
{embed="includes/header"}
</head>
<body id="applications-page">
<div id="header_container">
<div id="header">
<a href="index.php"><img src="http://www.cobaltcfd.com/graphics/logo.gif" width="263" height="117" border="0" alt="Cobalt Solutions Logo" id="logo" /></a>
<h1>Cobalt Solutions</h1>
</div><!-- end header -->
<div id="navigation">
{embed="includes/navigation"}
</div>
</div><!-- header container -->
<div id="container">
{if segment_3 !=""}
{embed="includes/applications_segment3}
{if:else}
{embed="includes/applications_segment2}
{/if}<!-- end segment 3 -->
</div>
<div id="footer">
{embed="includes/footer"}
</div>
</div><!-- container -->
</body>
</html>
<?php
include_once "/extras/replaceObjEmbed.php";
echo replaceObjEmbed(ob_get_clean());
?>
Thank you!
