帮我把下面几句改成ASP的代码。
<?php
$location  = 'albums';
$album_name = $_GET['album_name'];
$files  = glob($location . '/' . $album_name . '/*.{jpg,gif,png}', GLOB_BRACE);
$encoded  = json_encode($files);
echo $encoded;
unset($encoded);
源代码是在这里下载的,没有ASP版的,只好请大家帮忙了。
http://tympanus.net/codrops/2010/06/27/beautiful-photo-stack-gallery-with-jquery-and-css3/

解决方案 »

  1.   

    $files   = glob($location . '/' . $album_name . '/*.{jpg,gif,png}', GLOB_BRACE);
    glob 读取文件列表到数组
    相当于dim content,objf
      set   fso=server.createobject("scripting.filesystemobject")   
      filepath=server.mappath("/aaa/")  '文件存储的路径
      set   f=fso.GetFolder(filepath)   
      For Each objf in f.Files 
      content=content&objf.name  
      next$encoded  = json_encode($files);
    json_encode 对数组进行 json 编码
    网上这类代码很多的