I have just begun using your tool for a customer, but I got a bug when trying to export a document in pdw_base.php:162. The line looks line this:
@mkdir (pdw_tmpdir.$this->tmpdir) or $this->_error ('Can\'t create temporary directories');
The PHP-installation on my customers website simply could not handle creating dirs like this:
<?mkdir("/foo/bar/");?>
I had to rewrite it to this:
<?mkdir("/foo/bar");?>
I fixed the whole thing by changing the code from line 162 to 171:
Hi.
I have just begun using your tool for a customer, but I got a bug when trying to export a document in pdw_base.php:162. The line looks line this:
@mkdir (pdw_tmpdir.$this->tmpdir) or $this->_error ('Can\'t create temporary directories');
The PHP-installation on my customers website simply could not handle creating dirs like this:
<?mkdir("/foo/bar/");?>
I had to rewrite it to this:
<?mkdir("/foo/bar");?>
I fixed the whole thing by changing the code from line 162 to 171:
$mkdir_dir = pdw_tmpdir.$this->tmpdir;
if (substr($mkdir_dir, -1, 1) == "/"){
$mkdir_dir = substr($mkdir_dir, 0, -1);
}
mkdir($mkdir_dir) or $this->_error ('Can\'t create temporary directories');
Maybe you would consider implementing this code into the official release?
Thanks for creating a great tool! If I continue using it in the future, I will defently donate some money!
--
Regards
Kasper Johansen