go ahead... be a heretic | |
PerlMonks |
CGI-Upload / Bad File Numberby frnk (Novice) |
on Jul 16, 2016 at 12:21 UTC ( [id://1167877]=perlquestion: print w/replies, xml ) | Need Help?? |
frnk has asked for the wisdom of the Perl Monks concerning the following question:
Hi there,
i have a problem with a quiet simple file-upload script. Background: I've two websites both on the same server in different folders. I took the (working) script from one site with some small changes to use it also in the other one, but i cant get it to work. Here ist the code:
The result is a zero-byte file. The problem appears at binmode $src;. After this line $! contains 'Bad file number'. I tried to comment out this line but then the error appears after calling read(). Any ideas??? Regards, Frank
Back to
Seekers of Perl Wisdom
|
|