I tried this code, but got an Internal Server Error. Where is problem?(chmod 755, server Unix).
#!/usr/local/bin/perl -w $FILE= "/home/username/cgi-bin/test/file.exe"; open(FH, $FILE) || die "Can't access file"; print "Content-Type: application/octet-stream\n\n"; print "\n"; while(<FH>) { print; }
Thanks, Sandal
20030720 Edit by Corion: Fixed formatting
In reply to code problem by sandal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |