dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: how to paginate on directory list

  1. #1
    Join Date
    Jan 2013
    Location
    Ibadan
    Posts
    2

    how to paginate on directory list

    <?php
    $dir='../post';
    $files1=scandir($dir);
    $count=count($files1);
    for($i=2;$i<$count;$i++){

    $showface=str_replace("_"," ",$files1[$i]);
    $reformat=strlen($showface);
    if($reformat>45){
    echo substr($showface,0,45).'...'.substr($showface,-6);
    }
    else
    {
    echo $showface;
    }

    //below this line,i want to paginate the listed directory
    //but don't know.pls help!

    }
    ?>

  2. #2
    Join Date
    Jan 2013
    Location
    Ibadan
    Posts
    2
    i'm stuck around this corner and would want someone to add his knowledge to the chunk of codes above so that it would be so easy to paginate directory listing in php.urgent help is needed!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles