Klokjis Posted July 18, 2005 Report Share Posted July 18, 2005 nju reku saape taada: Undefined variable: _GET kodaa: <? switch($_GET['id']) { case "Jaunumi": include('viens.inc.php'); break; case "Par_Mani": include('divi.inc.php'); break; default: include('viens.inc.php'); break; }; ?> Link to comment Share on other sites More sharing options...
bubu Posted July 18, 2005 Report Share Posted July 18, 2005 Iekopē iekš paste.php.lv savu php.ini failu un tad ieliec te linku uz to. Link to comment Share on other sites More sharing options...
Delfins Posted July 18, 2005 Report Share Posted July 18, 2005 1.) pieminētais php.ini problēma 2.) laiž no konsoles (kas visticamāk netiek paredzēts darīt) Link to comment Share on other sites More sharing options...
Kristabs Posted July 18, 2005 Report Share Posted July 18, 2005 hmm <? if(isset($_GET['id'])){ $id = $_GET['id']; } else { $id = "Jaunumi"; } switch($id) { case "Jaunumi": include('viens.inc.php'); break; case "Par_Mani": include('divi.inc.php'); break; default: include('viens.inc.php'); break; }; //te man liekas nav jaabuut semikolam ?> Link to comment Share on other sites More sharing options...
bubu Posted July 18, 2005 Report Share Posted July 18, 2005 Kristabs: šim jau saka, ka $_GET mainīgā nav, nevis 'id' indekss iekš $_GET masīva. Link to comment Share on other sites More sharing options...
Klokjis Posted July 18, 2005 Author Report Share Posted July 18, 2005 nu kristapss... taa neies gan :P un tas PHP.ini : http://paste.php.lv/2212 bet ja tur kaut kas jaamaina... labaak tad pasaki arii rindinju kura no 1100+ :) Link to comment Share on other sites More sharing options...
Kristabs Posted July 18, 2005 Report Share Posted July 18, 2005 ; This directive tells PHP whether to declare the argv&argc variables (that #393 ; would contain the GET information). If you don't use these variables, you #394 ; should turn it off for increased performance. #395 register_argc_argv = On Link to comment Share on other sites More sharing options...
Klokjis Posted July 19, 2005 Author Report Share Posted July 19, 2005 nu bet man tachu bija ON... kaa tad lai definee $_GET?? Link to comment Share on other sites More sharing options...
Klokjis Posted July 19, 2005 Author Report Share Posted July 19, 2005 ok... viss aizgaajis... Link to comment Share on other sites More sharing options...
bubu Posted July 20, 2005 Report Share Posted July 20, 2005 Nu un varbūt pastāstīsi, kas par vainu? Link to comment Share on other sites More sharing options...
Klokjis Posted July 20, 2005 Author Report Share Posted July 20, 2005 (edited) nezinu... :DD nu man it kaa jau bija on tas ko kristabs teica, bet negaaja. es vnk uzmetu uzs free hostinga un tagad iet... aa... varbuut pie reizes vari izstaastiit kaada atshkjiriiba ir starp *.inc.php un starp *.php ok *.inc nevajag izmantot jo to var nolasiit no malas... a nav gadiijumaa *.inc.php = *.php?? Edited July 20, 2005 by Klokjis Link to comment Share on other sites More sharing options...
v3rb0 Posted July 20, 2005 Report Share Posted July 20, 2005 aa... varbuut pie reizes vari izstaastiit kaada atshkjiriiba ir starp *.inc.php un starp *.php ok *.inc nevajag izmantot jo to var nolasiit no malas... a nav gadiijumaa *.inc.php = *.php?? 19611[/snapback] atskirība starp inc, php un inc.php ir taada pati kaa starp zaljaam un sarkanaama zandeleem, respektivi nekaada - gaumes lieta, kaa gribi taa konfiguree serveri un sauc failus, ja noradisi ka ar inc tev glabajas php faili, tad, verot tiesi valjaa, sos serveris izpildiis kaa php. Link to comment Share on other sites More sharing options...
Klokjis Posted July 20, 2005 Author Report Share Posted July 20, 2005 tnx ;) Link to comment Share on other sites More sharing options...
Recommended Posts