Hi gurus,
Am working on a script to generate a sequence of GIFs in an <img> tag, when i run this 
script from dos, it works OK and  generate the appropriate headers, but when running 
under a web page - hosted by Apache v 1.3 on XP - it doesn't do anything, and i use 
CGI::Carp(fatalsToBrowser); but it give me no sign for error, can any one give me a 
hand on this, thanks in advance

The HTML page:
<HTML>
<BODY>
<CENTER>
<IMG SRC="/cgi-bin/anim.cgi">
</CENTER>
</BODY>
</HTML>

The CGI script:
#!f:/perl/bin/MSwin32-x86/perl5.00502.exe
@files=qw/logo1.gif logo2.gif logo3.gif logo4.gif/;
print "Content-type: multipart/x-mixed-replace\n\n";
foreach $file(@files){
    print "$file\n\n";
    print "Content-type: image/gif\n\n";
    open(LOGO,"$file");
    print <LOGO>;
    close(LOGO);
    sleep(1);
}

Reply via email to