Nu bet kodėl visa tai veikia ant bile kurio hostingo? Gal pasmane su localaus serverio konfiguracija kažkas ne taip? Exo > http://php.net/manual/en/function.isset.php > > arba jei tingi skaityt kaip ten viskas turi buti padaryta ir nenori > gilintis ziurek cia > http://lt.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting > > > "Exo" <exoNO@SPAMc123.lt> wrote in message > news:i3rgnm$2qh$1@trimpas.omnitel.net... >> Ta prasme taip: >> <?php >> if ($_GET['page'] == "") $_GET['page'] = "naujienos"; >> if ($_GET['lang'] == "") $_GET['lang'] = "lt"; >> include ("include/title.") . $_GET['lang']; >> include ("include/head.") . $_GET['lang']; >> include ("content/") . $_GET['page'] . "." . $_GET['lang']; >> include ("include/foot.") . $_GET['lang']; >> ?> >> >> jei taip tai situacijos tai nepakeitė, viskas tas pats >> >> Exo >> >> "bertas" <bertas@freemail.lt> wrote in message >> news:i3rf2h$vjm$1@trimpas.omnitel.net... >>> Nenaudok register_globals. Geriau naudok $_GET['page'] vietoj $page, >>> arba jei nenori tokio griozdo naudoti tai priekyje irašyk >>> $page=(isset($_GET['page')?$_GET['page']:''); >>> >>> 2010.08.10 15:22, Exo rašė: >>>> Klaida: "Undefined variable page in ....index.php on line ..." >>>> Ir galima gal konkrečiau apie isset($page), kur jį įdėt, nes neesu >>>> labai >>>> išprusęs šiuo klausimu :) >>>> >>>> Exo >>>> >>>> >>>> "dgjgh" <sdfsdf@asdf.com> wrote in message >>>> news:i3rcf8$r48$1@trimpas.omnitel.net... >>>>> klaidos nenori parodyt ? >>>>> bet galbut i if'a idek patikrinima isset($page) >>>>> >>>>> "Exo" <exoNO@SPAMc123.lt> wrote in message >>>>> news:i3r9f4$m7j$1@trimpas.omnitel.net... >>>>>> Sveiki, >>>>>> >>>>>> Susidūriau su problema, jei parašau : >>>>>> <? >>>>>> if ($page == "") $page = "naujienos"; >>>>>> if ($lang == "") $lang = "lt"; >>>>>> include ("include/title.") . $lang; >>>>>> include ("include/head.") . $lang; >>>>>> include ("content/") . $page . "." . $lang; >>>>>> include ("include/foot.") . $lang; >>>>>> ?> >>>>>> ant hostingo viskas veikia puikiai o ant localaus serverio rodo tik >>>>>> backgroundą ir nerodo contento. >>>>>> Pabandžiau parašyt taip kaip turi būt >>>>>> <?php >>>>>> if ($page == "") $page = "naujienos"; >>>>>> if ($lang == "") $lang = "lt"; >>>>>> include ("include/title.") . $lang; >>>>>> include ("include/head.") . $lang; >>>>>> include ("content/") . $page . "." . $lang; >>>>>> include ("include/foot.") . $lang; >>>>>> ?> >>>>>> tai dabar ant localaus serverio rodo visus meniu bet išmeta jog >>>>>> klaidos šiose eilutėse: >>>>>> if ($page == "") $page = "naujienos"; >>>>>> if ($lang == "") $lang = "lt"; >>>>>> ir nerodo pačio kontento. Gal galit man žaliam paaiškinti ką blogai >>>>>> padariau? :) >>>>>> Dėkui >>>>>> >>>>>> Exo >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>> > >