Ne bu böyle bir şey:
$page = 'home';
if (isset($_GET['c'])) {
$pages = array("home", "upload", "signup");
if (in_array(strtolower($_GET['c']), $pages)) {
$page = strtolower($_GET['c'])
}
}
include('pages/' . $page . '.php');
BTW: "Varsayılan" I "sayfa bulunamadı değilse, o varsayılan birini içeren" anladım
Also : if you files names are lower-case, you should use the lowercase name when including -- you are already useing lowercase for the comparison, so why not for the include ?
Eğer bir Windows ortamında Gelişen varsa, isimleri harf duyarlı değildir, ancak Linux üzerinde dosyaları - ve bir Linux sunucu üzerinde dağıtmak eğer ... Ben sana ne olacağını tahmin edelim ;-)