[insert_php]
$uploads = wp_upload_dir();
$iip_src_address = ‘http://mitra.brain.riken.jp:81/fcgi-bin/iipsrv.fcgi?FIF=/var/www/html/wp-content/uploads/’;
$iip_link = ‘http://mitra.brain.riken.jp:81/index3.html?pid=’;
$iip_folder = ‘nissl12sec’;
if ($dir = opendir($uploads[‘basedir’].’/’.$iip_folder)) {
$images = array();
while (false !== ($file = readdir($dir))) {
if ($file != “.” && $file != “..”) {
$images[] = $file;
sort($images);
}
$leg_image = count($images);
}
closedir($dir);
}
foreach($images as $image) {
echo ‘ ‘;
}
[/insert_php]
Leave a Reply
Want to join the discussion?Feel free to contribute!