在border下做一index.php,里面写两段相似的程序把数据调出来不就OK了...?

解决方案 »

  1.   

    哦?有人在问magento的问题了啊, 一直在弄zen cart,听说magento也是非常不错的开源网店可是一直没有机会去做啊
      

  2.   


    遍历目录不就行了
      if($handle = opendir('/path/to/files')){
              echo "Directory handle: $handle\n";
              echo "Files:\n";          /* 这是正确的遍历目录的方法*/
              while (false !== ($file = readdir($handle))){
                     echo "$file\n";
              }          closedir($handle);      }
      

  3.   

    foreach(glob('dir/*.php') as $filename)
         {
              echo 'Filename:'.$filename.'<br />';     }/* 这是正确的目录下的所有php文件的方法,如果是图片php改成gif或者其他格式*/
    如果你想取10个那就给一个计数器超过10就跳出吃咯