nationavon
MIS
I need a very simple script that I can use to upload images to a directory on a Unix server. I have tried:
$image_dir = "/mywebsite/imagedir/uploads/";
$upload_image = param('photo');
open (UPLOADIMAGE, ">>$image_dir"
while ($bytesread=read($upload_image,$buffer,1024))
{
print UPLOADIMAGE $buffer;
}
but it doesn't work. Any help would be greatly appreciated.
Please pray for our country and it's leaders.
$image_dir = "/mywebsite/imagedir/uploads/";
$upload_image = param('photo');
open (UPLOADIMAGE, ">>$image_dir"
while ($bytesread=read($upload_image,$buffer,1024))
{
print UPLOADIMAGE $buffer;
}
but it doesn't work. Any help would be greatly appreciated.
Please pray for our country and it's leaders.