Our merchants
$filesperpage=9;
$page=isset($_GET['p'])?$_GET['p']:1;
$dir1 = 'sites/';
$files = scandir($dir1);
$num_element = count($files);
for($j = 0; $j < count($files)-2; $j++){
$file_array = file("sites/customers_sites$j.txt");
if ($j>=($page-1)*$filesperpage and $j<$page*$filesperpage)
for($i=0; $i < count($file_array); $i++)
{
print_r($file_array[$i]);
}
}
?>