We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9c7b709 + bc506dc commit cf3369fCopy full SHA for cf3369f
1 file changed
index.php
@@ -7,14 +7,17 @@
7
8
9
$dir = scandir('qrcodes');
10
+$ignoredFiles = array(
11
+ '.',
12
+ '..',
13
+ '.DS_Store'
14
+);
15
foreach($dir as $file) {
- if($file=='.'||$file=='..') continue;
16
+ if(in_array($file, $ignoredFiles)) continue;
17
18
print $file;
19
print ' --- ';
20
$qrcode = new QrReader('qrcodes/'.$file);
21
print $text = $qrcode->text();
22
print "<br/>";
-
-}
23
+}
0 commit comments