I have a cgi script that uses some javascript functions to display a popup calendar for choosing dates. Thejavascript calls an HTML file named calendar.html as the base for the calendar. Whenever I click on the icon to open the calendar, the new window opens, but with an Error 500 Internal Server Error. Checking the apache error log I see:
Exec format error: exec of '/v/www/cgi-bin/timesheet/
calendar.h
tml' failed.
I know this has something to do with perl not knowing how to open or handle the file, or something like that.
So is it possible to execute/open/display an HTML file from within a perl script, or am I missing something here?
Thanks
Paul
Start Free Trial