Search through documents folder

get_bloginfo('template_directory') returns a URI and I believe glob works with paths so try:

$dir =  get_theme_root() . "/documents/*";
foreach(glob($dir) as $file) {
    echo $file;  
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)