PHP Echo works locally, does not work on testing server
<p>I have a PHP translation tool that sets $_Session['language'] as en, it, es, fr, or de.</p>

<p>Later in the site we have a flash product configurator that reads an XML file (cfg_feed_en.xml, cfg_feed_it.xml, cfg_feed_fr.xml, cfg_feed_es.xml, cfg_feed_de.xml) so that the language inside the flash tool matches the actual site language.</p>

<p>So my javascript call for the flashvars and params looks as follows: </p>

<pre><code>var flashvars = {
  name: "product=level&amp;xml_file=cfg_feed_&lt;? echo $language; ?&gt;.xml"

var params = {
  allowScriptAccess: "sameDomain", 
  quality: "high",
  bgcolor: "#000000",
  flashvars: "product=level&amp;xml_file=&lt;? echo $language; ?&gt;.xml"  
</code></pre>

<p>It works perfectly locally on wamp but when I upload to the test server it fails. </p>

<pre><code>var flashvars = {
  name: "product=level&amp;xml_file=cfg_feed_.xml"

var params = {
  allowScriptAccess: "sameDomain", 
  quality: "high",
  bgcolor: "#000000",
  flashvars: "product=level&amp;xml_file=.xml"
</code></pre>

<p>As per <a href="http://stackoverflow.com/questions/2031033/php-session-echo-not-working">PHP session echo not working?</a> I checked in FireCookie and verified that PHPSESSID is being generated both locally and on the server and in fact the translation tool is working fine.</p>

<p>So what is it that I don't know here?</p>

<p>Is it a server configuration issue?  Do I need to go about this in another way?</p>

<p>Thanks.</p>
