Here's the markup of my page:
And the PHP code for that snippet:
So you can see it just detects whether the code is being called in a development environment (based on the subdomain) and outputs an appropriate subdomain for the src attribute of the JavaScript block.
Why does the snippet not get processed in this scenario? If I pull it outside the src="" it gets processed fine.
Help is appreciated...
-b
Code:
<div id="appContainer">Loading, please wait…</div>
<script type="text/javascript" src="//[wbcr_php_snippet id='8161'].cristinanetwork.org/includes/js/mloader.ncf?linkid=11"></script>
Code:
if (preg_match("/dev\./i",$_SERVER['HTTP_HOST'])) { echo "proto"; } else { echo "www"; }
Why does the snippet not get processed in this scenario? If I pull it outside the src="" it gets processed fine.
Help is appreciated...
-b