sandal has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: code problem
by sgifford (Prior) on Jul 21, 2003 at 17:55 UTC | |
|
Re: code problem
by blue_cowdawg (Monsignor) on Jul 21, 2003 at 17:21 UTC | |
by sandal (Initiate) on Jul 21, 2003 at 17:50 UTC | |
by blue_cowdawg (Monsignor) on Jul 21, 2003 at 18:10 UTC | |
by sandal (Initiate) on Jul 22, 2003 at 10:49 UTC | |
by blue_cowdawg (Monsignor) on Jul 22, 2003 at 13:22 UTC | |
| |
|
Re: code problem
by erasei (Pilgrim) on Jul 21, 2003 at 17:43 UTC | |
|
Re: code problem
by neuro (Initiate) on Jul 21, 2003 at 17:43 UTC | |
by blue_cowdawg (Monsignor) on Jul 21, 2003 at 18:02 UTC | |
by neuro (Initiate) on Jul 24, 2003 at 00:14 UTC | |
|
Re: code problem
by PodMaster (Abbot) on Jul 21, 2003 at 21:48 UTC |