i have tried to figure it out. this is wat i mean that open function can be used instead file copy
$IMG = $CGI->param("photo"); my $newfile = '09911.JPG'; my $copydir = 'img'; my $uploadfile = $CGI->upload($IMG); rename($uploadfile, $newfile); open ( UPLOADFILE, "+>$copydir/$newfile" ); close UPLOADFILE;
now the code works as i like it. but i get my pics with zero bytes
In reply to Re^4: file handing
by bigup401
in thread file handing
by bigup401
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |