Announcement

Collapse
No announcement yet.

is cloudlinux limited readdir php function ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • is cloudlinux limited readdir php function ?

    I have problem with one script looks like this:

    if( is_dir($dir) ){
    if($handle = opendir($dir)) {
    while (false !== ($file = readdir($handle))) {
    echo $dir .<b>. $file.</b><br />;
    }
    closedir($handle);
    }
    }

    On i.e. CentOS this reads many files in directory
    but on cloudlinux reads only 10 first files, and then stops.

    How to discover why it is so ? I set in LVE Manager 3GB of ram, but I can see that script reach the limit.

    It should be something else, but where to search for such limits in read files ?

    What could it be ?
Working...
X