Skip to content

Commit cf3369f

Browse files
committed
Merge pull request #8 from jk2K/master
compatible with mac
2 parents 9c7b709 + bc506dc commit cf3369f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

index.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@
77

88

99
$dir = scandir('qrcodes');
10+
$ignoredFiles = array(
11+
'.',
12+
'..',
13+
'.DS_Store'
14+
);
1015
foreach($dir as $file) {
11-
if($file=='.'||$file=='..') continue;
16+
if(in_array($file, $ignoredFiles)) continue;
1217

1318
print $file;
1419
print ' --- ';
1520
$qrcode = new QrReader('qrcodes/'.$file);
1621
print $text = $qrcode->text();
1722
print "<br/>";
18-
19-
20-
}
23+
}

0 commit comments

Comments
 (0)