質問編集履歴
1
PHPソースの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -68,6 +68,36 @@
|
|
68
68
|
|
69
69
|
|
70
70
|
|
71
|
+
PHP部分のソースは以下の通りです。
|
72
|
+
|
73
|
+
```PHP
|
74
|
+
|
75
|
+
<?php
|
76
|
+
|
77
|
+
$dir_name = dir("./img/");
|
78
|
+
|
79
|
+
$file_url = "http://hogehoge.com";
|
80
|
+
|
81
|
+
while($file_name = $dir_name->read()){
|
82
|
+
|
83
|
+
$path = $dir_name->$path . "/" . $file_name;
|
84
|
+
|
85
|
+
if (@getimagesize($path)){
|
86
|
+
|
87
|
+
echo"<img src= $file_url$file_name>";
|
88
|
+
|
89
|
+
}
|
90
|
+
|
91
|
+
}
|
92
|
+
|
93
|
+
$dir_name->close();
|
94
|
+
|
95
|
+
?>
|
96
|
+
|
97
|
+
```
|
98
|
+
|
99
|
+
|
100
|
+
|
71
101
|
### 試したこと
|
72
102
|
|
73
103
|
|