Logo on PHP

While I too wait for technical support to get a chance at my problem…

Has anyone instructions for installing the corner logo in a php environment? There is no head or body tag.

Thanks in advance.

Hi Mushroom,
TrustLogo can be installed on any dynamic scripting language. If your page output does not include or tags then it’s not a properly formatted page.

Although PHP is dynamic, it will always output standard HTML content which the browser will then render client side.

Here is an example PHP document:


<? //sample php header code ?>
<html>
<head>
<title>My title</title>
<? //TL header code, I escaped the double quotes
print "<script language=\"javascript\" type=\"text/javascript\">
//<![CDATA[
var cot_loc0=(window.location.protocol == \"https:\")? \"https://secure.comodo.net/trustlogo/javascript/cot.js\" :
\"http://www.trustlogo.com/trustlogo/javascript/cot.js\";
document.writeln('<scr' + 'ipt language=\"JavaScript\" src=\"'+cot_loc0+'\" type=\"text\/javascript\">' + '<\/scr' + 'ipt>');
//]]>
</script>";
?>
</head>
<body>
<? print "Here is my COT\n
<script language=\"JavaScript\" type=\"text/javascript\">
COT(\"testest.com\", \"SC2\", \"none\");
</script>";
?>
</body>
</html>


I PROMISE I have done exactly that three or four times…Today, it worked. I have NO idea what was getting messed up. I don’t think it was the generated script, I thing it was the osCMaxx cart I am using the templae system really makes things more difficult. Thanks :BNC

See my post here. https://forums.comodo.com/index.php/topic,4944.0.html