Hi!
I try upload image to server via form. I take working code, make some modifications, and try use it on my desktop (Win98, Apache for Win)>:-( You can see it here:
Code sample is below:
-----------------------------------------------------
my $im_file = $co->param("img_$no"
;
@pathName = split(/\\/,$im_file);
$newFile = pop(@pathName);
($name,$ext) = split('\.',$newFile);
$newFile = "$no.$ext";
if($im_file) {
open(OUTFILE,">$tmp_dir/images/$newFile"
||die "Can not open $newFile. $!";
while($bytesread=read($im_file,$buffer,1024)) {
print OUTFILE $buffer;
}
close(OUTFILE);
}
---------------------------------------------------
I seem, problem is in server configuration. Can any help me?
I try upload image to server via form. I take working code, make some modifications, and try use it on my desktop (Win98, Apache for Win)>:-( You can see it here:

Code sample is below:
-----------------------------------------------------
my $im_file = $co->param("img_$no"
@pathName = split(/\\/,$im_file);
$newFile = pop(@pathName);
($name,$ext) = split('\.',$newFile);
$newFile = "$no.$ext";
if($im_file) {
open(OUTFILE,">$tmp_dir/images/$newFile"
while($bytesread=read($im_file,$buffer,1024)) {
print OUTFILE $buffer;
}
close(OUTFILE);
}
---------------------------------------------------
I seem, problem is in server configuration. Can any help me?