$value) { //Always finde the correct path $dir_path = __FILE__; $dir_path = str_replace("include.php", "", $dir_path); require_once $dir_path . $value . ".php"; } ?>