tudor has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Embedding Flash in generated HTML
by CountZero (Bishop) on Aug 20, 2005 at 18:15 UTC

    Maybe a simple problem, but difficult to answer without knowing on what system, what webserver and what server-configuration you are running this.

    Assuming that you are generating the web-page dynamically with Perl, I suggest that you first try it with a static page and see if the link to the movie in that page works. When you have that working, then try to get your script to output the same link. If it doesn't work it could be a permission problem or it could have something to do with relative and absolute file paths. Hint: try it first with the full absolute file-path.

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

      Try to remove the /htdocs part from the link, as Apache webserver assumes the content of /htdocs as it's top level directory, I may be wrong but yet it could do the job ;) Another thing, check if the *.swf file has the +r flag set. I also assume that you have put the output html from your perl script into the htdocs, and you are calling it from a web browser via http://localhost/filename.html Hope that you can pull out something usefull from this reply.
Re: Embedding Flash in generated HTML
by boysenberry (Acolyte) on Aug 20, 2005 at 18:35 UTC
    If the requested url is that is failing is "/htdocs/file.swf" and your file is in /htdocs/file.swf then I'm guessing the url that it should be requesting is something like http://domain.com/file.swf.
    So if you're using an %ENV varible to come up with the first part of the string "/htdocs/" you're just using the wrong variables. If it's static try just using "file.swf" by itself and see if that works.