I think it was a simple oversight, but creating a file
doesn't work. I went through the code very carefully
and found that the command to actually create the new
file was missing.
Round about lines 350-360 or so is a code block that
looks like this:
case "F" : // create a new file
if (file_exists($path) ||
!is_writable(dirname($path))) {
$this->Error("Could not write to file or file
already exists", $path) ;
}
$tstr = $this->self . "?op=details&D=" .
$this->rel_dir . "&F=" . $file;
header("Location: " . $tstr);
exit;
I added this line of code in the middle, before the
$tstr line:
touch( $path );
This fixes the glitch. Maybe this is something to add
in a quick maintenance release? Great program
otherwise. Thanks!
Logged In: NO
Sorry, sourceforge munged the post a bit. Here's what that
code block looks like after adding that one line:
case "F" : // create a new file
if (file_exists($path) || !is_writable(dirname($path))) {
$this->Error("Could not write to file or file already
exists", $path) ;
}
touch( $path );
$tstr = $this->self . "?op=details&D=" .$this->rel_dir .
"&F=" . $file;
header("Location: " . $tstr);
exit;
Cheers!