in reply to Re^4: Broken image link when calling CGI from img tag
in thread Broken image link when calling CGI from img tag

The general mechanism is to wait for the external program, and only then print the redirect.
Perl 6 - links to (nearly) everything that is Perl 6.
  • Comment on Re^5: Broken image link when calling CGI from img tag

Replies are listed 'Best First'.
Re^6: Broken image link when calling CGI from img tag
by lintunen (Novice) on Jul 27, 2010 at 13:38 UTC
    So will putting the correct logic in the Perl CGI script to wait will stop a broken link being shown in the img tag of the HTML document that calls the Perl script in the first place? As I posted previously, existence for the file is checked before calling the redirect.
      As I posted previously, existence for the file is checked before calling the redirect.

      But you haven't shown what happens if the file doesn't exist. You haven't told us if there are any mechanisms on your system that might delete files.

      All in all you told us little about your system (and most importantly, have shown us little actualy code), and haven't headed the advice to look into the access and error logs.

      Asking general questions to solve a specific problem seems rather inefficient to me.

      Perl 6 - links to (nearly) everything that is Perl 6.
        It seems that everybody is missing the point or I have not described the problem properly? The image IS getting generated just fine, there are no errors in the error logs - I mentioned in my initial post that a subsequent refresh is required in order to make the image appear in the browser and I am not sure what measures to take to make the image load the first time the page is loaded. (I also mentioned the code works on Apache, but not IIS.) I did show what I believed to be the important line of code and described how it was called, I'm sorry if that was too vague.