Welcome Guest, Not a member yet? Register   Sign In
dx_auth unlink error
#4

[eluser]bgreene[/eluser]
Hi, I was still a bit puzzled about the error warning so i looked at it a bit deeper and found that in the section below, the program sees the fonts folder (i have captcha/fonts as it is in the dxauth package) as being an image file and tries to delete it which is why an error occurs. I've cured it by changing the if condition to
" ...and $filename != "index.html" and $filename != "fonts")"

Oh, and my apologies for this getting a thread of its own rather than being in the dxauth thread. I'm a first timer. Won't happen again, mea culpa.

while($filename = @readdir($current_dir)) {
if ($filename != "." and $filename != ".." and $filename != "index.html") {
$name = str_replace(".png", "", $filename);
if (($name + $expiration) < $now) {
@unlink($img_path.$filename);
}
}
}


Messages In This Thread
dx_auth unlink error - by El Forum - 02-15-2009, 08:43 AM
dx_auth unlink error - by El Forum - 02-15-2009, 10:09 AM
dx_auth unlink error - by El Forum - 02-15-2009, 11:40 AM
dx_auth unlink error - by El Forum - 02-16-2009, 08:13 AM
dx_auth unlink error - by El Forum - 11-11-2009, 08:14 PM
dx_auth unlink error - by El Forum - 11-11-2009, 08:26 PM
dx_auth unlink error - by El Forum - 11-11-2009, 09:07 PM
dx_auth unlink error - by El Forum - 11-11-2009, 09:36 PM
dx_auth unlink error - by El Forum - 04-17-2010, 08:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB