Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: filehandles being recorded as CGItemp files

by Andre_br (Pilgrim)
on Apr 28, 2006 at 18:40 UTC ( [id://546346]=note: print w/replies, xml ) Need Help??


in reply to Re: filehandles being recorded as CGItemp files
in thread filehandles being recorded as CGItemp files

Sure, here is my code:
# ... use CGI; my $q = new CGI; my $namecover = check_input( $q->param("cover") ); my $photocover = $q->upload("cover"); $namecover = lc $namecover; my ($radical, $extension) = split (/\./, $namecover); $namecover_system = "$record_id.$extension"; # this record_id comes fr +om the database $namecover_system = untaint ( $namecover_system ); # the -T switch wou +ldnīt work without this; the untaint() is a sub I created to untaint +the data open (PHOTO,">../images/covers/$namecover_system") || die $!; binmode PHOTO; while (<$photocover>) { print PHOTO; } close PHOTO; # ...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://546346]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-25 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found