Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 26th, 2010  |  syntax: Perl  |  size: 0.13 KB  |  views: 142  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. $fh = upload('upload_name');
  2.  
  3. open OUTFILE, ">$destfile";
  4. while ($bytesread=read($fh,$buffer,1024))
  5. {
  6.     print OUTFILE $buffer;
  7. }