I wonder if anyone encounter similar problem like mine.
I have a html file with 3 flash object,
when open up the html file in my browser, the 3 flash file showed up.
I use a php script, read the html file and dump the content immediately, only the first 2 flash object is displayed, the 3rd flash object is completely missing. Even in view source, the 3rd flash object entire <object></object> is missing.

below is what my object look like for all 3 flash file

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="468" height="60">
<param name="movie" value="http://ch8c.mediacorptv.com/enews/images/celebs_long.swf">
<param name="quality" value="high">
<embed src="http://ch8c.mediacorptv.com/enews/images/celebs_long.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="468" height="60"></embed>
</object>

I need to read and parse the html file to replace some tags, that is why I encounter this wierd problem with flash objects in the html file.
Anyone got a solution for this?

Thanks in advance

    Does this have anything to do with PHP?

      I'm not sure if its the browser problem or the php print function problem. When I double click on the html file, it turn out ok.
      When I read the html file using fread and do a print immediately, the 3rd flash object is missing.
      It turn out the same on the firefox and IE6 browser.

        So have you compared the HTML as output by PHP with the HTML you get by double clicking on it? If they're having different effects they should be different.

          yes i have view source on the output by the php script.
          the 3rd flash object tags are missing as compared to the original html file.
          This should not happen as it should contain the same content as te php script is a normal fread the whole file and do a print on the read content.

            Right; so the problem is very likely to be in your PHP code. It would help to see that.

              $file = "index.htm";
              $handle = fopen (getcwd() . "/" . $file, "r"); 
              $contents = fread ($handle, filesize (getcwd() . "/" . $file)); 
              fclose ($handle); 
              print $contents;

              Additional finding
              if I use
              print htmlentities($contents);
              I can see the 3 flash object <object></object>
              if I remove the function htmlentities
              Only 2 of the flash object is out put to the browser

                Write a Reply...