Hello Aqua-Softians!
I am very close to finally completing my website redesign, www.seph.ws.
I offer my CV as a downloadable file and I wanted to keep track of the downloads and such, so, i went and downloaded a script (perl, cgi) that seemed to cover my needs.
I followed all the instructions, the admin.cgi works, however, in the CV section, when i click on download it gives me a 500 error. I then proceeded to check the error logs of the server and it says "premature end of script header", so, as usual, i went to google and searched for the causes, checked for it to be encoded in UNIX, done; checked for the print commands to be specifying HTML, done; and many more.
I then proceeded to add "use CGI::Carp qw(fatalsToBrowser);" under the perl path as to be able to debug and the message i get is:
syntax error at download.cgi line 87, near "$content=~ s/%(..)/pack(""Execution of download.cgi aborted due to compilation errors.
if i go to line 87, i find the following...
...
$content=~ s/%(..)/pack("c",hex($1))/ge;
$fields{$key}=$content;
...
And i dont know what that means, among the languages i know, perl is not one of them.
I attach the file as a zip so that maybe someone can be kind enough to help me out. Else, if someone knows of a good working script to do what i needed, i can avoid all this crap ![]()
Thanx in advance!
PS: Yes, CHMOD is set to 755 on the files ![]()
// Seph
Aqua-Soft Forums