Dakle imam ovaj kod za switch linkova na sajtu....
<?php
include "inc/header.qwy";
switch ($adresa) {
case "home": include"strane/home.php";
break;
case "kontakt": include"strane/kontakt.php";
break;
case "hardver": include"strane/hardver.php";
break;
case "softver": include"strane/softver.php";
break;
case "onama": include"strane/onama.qwy";
break;
case "inddizajn": include"strane/inddizajn.php";
break;
case "grafdizajn": include"strane/grafdizajn.php";
break;
case "webdizajn": include"strane/webdizajn.php";
break;
case "reference": include"strane/reference.php";
break;
case "linkovi": include"strane/linkovi.php";
break;
case "pretraga": include"strane/pretraga.php";
break;
case "download": include"strane/download.php";
break;
case "poslato": include"strane/poslato.aspx";
break;
case "mapa": include"strane/mapa.php";
break;
case "proizvodi": include"strane/hardver.php";
break;
// r3d switch meni linkovi
case "ind": include"strane/rhino/ind.php";
break;
case "plovila": include"strane/rhino/plovila.php";
break;
case "nakit": include"strane/rhino/nakit.php";
break;
case "cadcam": include"strane/rhino/cadcam.php";
break;
case "flamingo": include"strane/rhino/flamingo.php";
break;
case "pingvin": include"strane/rhino/pingvin.php";
break;
case "proto": include"strane/rhino/proto.php";
break;
case "rein": include"strane/rhino/rein.php";
break;
case "multi": include"strane/rhino/multi.php";
break;
case "graf": include"strane/rhino/graf.php";
break;
case "labkit": include"strane/rhino/labkit.php";
break;
case "estatus": include"strane/rhino/estatus.php";
break;
case "edu": include"strane/rhino/edu.php";
break;
case "gal": include"strane/rhino/gal.php";
break;
case "cene": include"strane/rhino/cene.php";
break;
default: include"strane/home.php";
}
include "inc/footer.qwy";
?>
Sve normlano f-nise, ucitava itd. medjutim na nekim serverima linkovi prosto ne rade, samo ucita home stranicu i ni jedan link ne radi?! Iako se u address bar-u menja adresa tipa /?adresa=stranica1
Npr. EUNET hosting server ne guta ovu kombinaciju. Takodje i win32 all-in-one web serveri tipa XAMPP.
Sta bi to moglo da bude uzrok? Ocigledno da na 5 servera radi normalno, samo Eunet zeza i ovi win32 tipa XAMPP kao sto sam rekao.
Da nije na neki nacin disable-ovan switch u php.ini? Mrzelo me da gledam...
|