jmelhus wrote:Hi Aba,
Tried it without success, the scripts reports archive is deleted. Could be some settings on my side?
Here is my system:
Apache HTTPD 2.2.8 + Openssl 0.9.8g
MySQL 5.0.51a
PHP 5.2.5
KP build 470
Win XP Pro SP2
It creates an archive with a totally different name that appears in the script, is it supposed to be that way?
I also removed the other archivers to be sure to have the right ZIP included from PHP. And the ZIP feature is enabled in the PHP settings. The permissions should be sufficient as well, since this is on a windows system with an admin user...
Yes, that's completely OK. However, I've noticed that PHP has starting take some liberties under Windows. It does not use the temporary directory that is specified when using tempnam(), and it instead uses the system temp directory which can differ alot.
There is an code for bypassing this, it looks like this:
- Code: Select all
if (isphp5() && function_exists('sys_get_temp_dir'))
{
$file = sys_get_temp_dir() . $_POST['file'];
if (file_exists($file))
{
kplay_archivedownload($file, $_POST['mime'], $filename);
@unlink($file);
$fileok = true;
}
}
Can you add some debugging here, and see if that code runs? Try also to echo what it is getting from 'sys_get_temp_dir()'.