title: Playing wmv in php - blank screen shown in browser
body: <p>Let me introduce myself as a newbie in php. I have a requirement to play wmv in a php file.</p>
  
  <p>I try to play a wmv file in php using the following code. But the browser shows a blank white page. </p>
  
  <p>I do not understand why this does not work. Any help is much appreciated.</p>
  
  <pre><code>&lt;?php
  $p="&lt;html&gt;\n
  &lt;head&gt;\n
  &lt;title&gt;My Windows media video webpage file written with PHP&lt;/title&gt;\n
  &lt;/head&gt;\n
  &lt;body&gt;\n
  &lt;BR&gt;\n
  &lt;center&gt;&lt;div&gt;Windows media video webpage file written by a PHP page. How do you like it?&lt;BR&gt;\n
  &lt;object id=\"MediaPlayer\" classid=\"clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95\"   width=\"480\" height=\"406\" standby=\"Loading Windows Media Player components…\" type=\"application/x-oleobject\" codebase=\"http://activex.microsoft.com/activex/controls  /mplayer/en/nsmp2inf.cab#Version=6,4,7,1112\"&gt;
  &lt;param name=\"FileName\" value=\"ez-architect.wmv\"&gt;
  &lt;param name=\"AutoStart\" value=\"true\"&gt;
  &lt;param name=\"ShowControls\" value=\"true\"&gt;
  &lt;param name=\"BufferingTime\" value=\"2\"&gt;
  &lt;param name=\"ShowStatusBar\" value=\"true\"&gt;
  &lt;param name=\"AutoSize\" value=\"true\"&gt;
  &lt;param name=\"InvokeURLs\" value=\"false\"&gt;
  &lt;param name=\"AnimationatStart\" value=\"1\"&gt;
  &lt;param name=\"TransparentatStart\" value=\"1\"&gt;
  &lt;param name=\"Loop\" value=\"0\"&gt;
  &lt;embed type=\"application/x-mplayer2\" src=\"ez-architect.wmv\" name=\"MediaPlayer\"  autostart=\"1\" showstatusbar=\"1\" showdisplay=\"1\" showcontrols=\"1\" loop=\"0\" videoborder3d=\"0\" pluginspage=\"http://www.microsoft.com/Windows/MediaPlayer/\"     width=\"480\" height=\"406\"&gt;&lt;/embed&gt;
  &lt;/object&gt;
  &lt;/div&gt;&lt;/center&gt;\n
  &lt;/body&gt;\n
  &lt;/html&gt;\n";
  $a = fopen("my_Windows_media_video_webpage_file_written_with_php.html", 'w');
  fwrite($a, $p);
  fclose($a);
  chmod("my_Windows_media_video_webpage_file_written_with_php.html", 0644);
  ?&gt;
  </code></pre>