hi to all,
I need to read a file selected by (and stored in the computer of) users.
My first idea was on uploaded files:
(all variables are sent correctly;
$_ is the name of the file
$file is a relative pathname)
s/.*[\/\\](.*)/$1/;
$file = "upnull/".$_;
open(LOCALE, "> $file") or die("problema: $!");
binmode LOCALE;
while(<$file>)
{
print LOCALE;
}
close(LOCALE);
I'm curious to know why that script doesn't work and I need to know if
there's a more sicure way to do it (for instance reading the file
without copying it on the server...)
thank you all,
alladr
|^|_|^|_|^| |^|_|^|_|^|
| | | |
| | | |
| |*\_/*\_/*\_/*\_/*\_/* | |
| |
| |
| |
| http://www.e-allora.net |
| |
| |
**************************************
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>