Arkadaşlar bu kodu bi turlu hatayı cozemedım.

Amacım su dosyayı file_exists ile dosyanın varlıgını kontrol etmek eğer dosya varsa getirmek yoksa index.phpnnın gelmesnı ıstıyorum function.php get'i atadım.
Boyle kullanıcında sayfa sonsuz donguye gırıyor.

PHP:
$do = get("do"); if (file_exists("../test/.php")).php"); } else

bide şoyle denedım gene olmadı

PHP:
$do = $_GET["do"]; if (file_exists("../test/.php")).php"); } else