Re: [SMARTY] Version Updates

From: Date: Thu, 06 Mar 2003 18:18:49 +0000
Subject: Re: [SMARTY] Version Updates
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8454@lists.php.net to get a copy of this message
At 16:23 06.03.2003 +0100, you wrote:
Uh, bad news. Many ISP uses wwwrun.nogroup for the server. The compiled or cached files are owned by this user. So I am not able to remove them.
I've included the following script into my projects ... function delete($file) { chmod($file,0777); if (is_dir($file)) { $handle = opendir($file); while($filename = readdir($handle)) { if ($filename != "." && $filename != "..") { delete($file."/".$filename); } } closedir($handle); rmdir($file); } else { unlink($file); } } delete("templates_c"); delete("cache");

« previous php.smarty.general (#8454) next »