PHP Classes

Found a problem with unlink

Recommend this page to a friend!

      TAR/GZIP/BZIP2/ZIP Archives  >  All threads  >  Found a problem with unlink  >  (Un) Subscribe thread alerts  
Subject:Found a problem with unlink
Summary:Problem unlinking tmp file
Messages:1
Author:Ilan Zilbershtein
Date:2006-11-22 09:59:58
 

  1. Found a problem with unlink   Reply   Report abuse  
Picture of Ilan Zilbershtein Ilan Zilbershtein - 2006-11-22 09:59:58
Hi,

I've downloaded this package and using it - it is very great.
However, I've encountered a problem and had to change the source code of archive.php, as it adds the base dir to the file path for unlink.
This fails since when the tmp file is not under the base dir
(when the archive file is created with a full path).
Better add a check if file exists before unlinking it,
in order to avoid warning message in the log.

Ilan.