Test JPEG"; echo "

"; $d = dir(dirname(__FILE__) . '/'); while (false !== ($entry = $d->read())) { $re = '/^img.*\.jpg/m'; preg_match_all($re, $entry, $matches, PREG_SET_ORDER, 0); if ($matches) { echo "\"obrazek"; } } echo "

"; $d->close(); ?>