
Pro_4
User
May 24, 2001, 2:21 PM
Post #2 of 5
(1016 views)
|
Well, This is what i use and i works
open(FILE, ">$file"); while (read($file, $buffer, 1024){ print FILE $buffer; } close(FILE); When you upload stuff you need to use the filename as the filehandle to get the info. ($file, $buffer, 1024) The $file is the filename and $buffer is all the info in the file. So you print FILE $buffer; to add the info to the new file. You might want to add binmode(FILE); to it if you are going to upload binary files (i think). Hope that answers your questions and your script will work :) People Engrossed by a Reliable Language
|