Hi, I've got the following code in a cgi script (perl);
print $query->header; print $query->start_html(-title=>'Connected to the NET', -name=>'conne +cted'); print "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" +codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/sw +flash.cab#version=4,0,2,0\" width=\"400\" height=\"300\">\n"; print " <param name=movie value=\"connecting.swf\">\n"; print " <param name=quality value=high>\n"; print " <embed src=\"connecting.swf\" quality=high pluginspage=\"http +://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=Sh +ockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"400\" h +eight=\"300\">\n"; print " </embed>\n"; print " </object>\n";
Which is supposed to display the .swf file. But when I run it from within a browser I get a blank page. When I right click on the on the page it say 'movie not loaded'. I also get the following message in the error log for the web site;

[Sun Mar 10 06:57:31 2002] [error] (8)Exec format error: exec of /var/ +www/cgi-bin/connecting.swf failed <br> [Sun Mar 10 06:57:31 2002] [error] [client 192.168.0.2] Premature end +of script headers: /var/www/cgi-bin/connecting.swf

I've cut and pasted the output'd HTML code into an editor and saved it into my HTML directory and run the page. It display from there.

Does anyone have any idea why it's not working?

Thanks
Chris


In reply to Flash not displaying by chaskins

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.