2019-01-24 15:19:47 UNSELECTED

Unknown type code

Copy Copied! Full
<?php $dir = "http://localhost:3000/課題/image"; $dir2 ="C:/php7/htdocs/課題/image"; //$dir2 ="C:/php7/htdocs/課題/image"; //$images = glob("$dir2/*.jpg"); $dir = dirname(__FILE__); $images = glob("$dir/image/*.*");?> <html> <body> <?php // echo '$images : ' . $images; //foreach($images as $file){ // echo '$file : ' . $file; ?> <?php foreach($images as $file){?> <?php if(is_file($file)){?> <img src=<?php echo $file;?>> <?php echo $file . "<br>"?> <?php }} ?> </body> </html>
RECOMMEND