Welcome Guest, Not a member yet? Register   Sign In
function preforms much worse on CI
#4

[eluser]CroNiX[/eluser]
well, nothing you posted has anything directly to do with the CI framework, so I don't think that's the problem. I do see a lot of code that is doing nothing in your post.

You have 2 "$file = readdir ($handle);" and even a 3rd within your while statement. I believe you just need the one in the while statement.

Are you just trying to count the files/directories in the path?
Code:
$path = str_replace("application\models\pic_load.php","JSandProducts\\".$type, __FILE__);
$files = scandir($path);
return count($files);  //you might want to subtract 2 from this because if its a valid directory it will always return "." and "..".


Messages In This Thread
function preforms much worse on CI - by El Forum - 06-02-2011, 01:11 PM
function preforms much worse on CI - by El Forum - 06-02-2011, 03:38 PM
function preforms much worse on CI - by El Forum - 06-02-2011, 03:46 PM
function preforms much worse on CI - by El Forum - 06-02-2011, 04:04 PM
function preforms much worse on CI - by El Forum - 06-02-2011, 04:21 PM
function preforms much worse on CI - by El Forum - 06-02-2011, 11:20 PM
function preforms much worse on CI - by El Forum - 06-03-2011, 02:56 AM
function preforms much worse on CI - by El Forum - 06-03-2011, 04:35 AM
function preforms much worse on CI - by El Forum - 06-03-2011, 05:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB