Welcome Guest, Not a member yet? Register   Sign In
Little bug fix for is_really_writable in common.php
#3

[eluser]Francois Gelinas[/eluser]
Hi Derek, thanks for taking time to reply to my post.
The folders that are tested with the function is_really_writable() on my system are the log and cache folders, and CI is writing and updating files in those, so it's not a permissions problem.
I updated the file with your solution :
Code:
$file = rtrim($file, '/').'/'.md5(mt_rand(1,100).mt_rand(1,100));
and could not reproduce the problem yet, so it is random enough to fix the problem.
Just one question, is there a reason to use mt_rand(1,100) twice instead of mt_rand(1,10000) ?


Messages In This Thread
Little bug fix for is_really_writable in common.php - by El Forum - 04-21-2009, 06:43 PM
Little bug fix for is_really_writable in common.php - by El Forum - 04-23-2009, 10:25 AM
Little bug fix for is_really_writable in common.php - by El Forum - 04-27-2009, 08:12 PM
Little bug fix for is_really_writable in common.php - by El Forum - 04-28-2009, 07:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB