10 lines
183 B
PHP
10 lines
183 B
PHP
|
<?php
|
||
|
$term = $_REQUEST['q'];
|
||
|
$images = array_slice(scandir("images"), 2);
|
||
|
foreach($images as $value) {
|
||
|
if( strpos(strtolower($value), $term) === 0 ) {
|
||
|
echo $value . "\n";
|
||
|
}
|
||
|
}
|
||
|
?>
|