bumbieriic Posted February 12, 2005 Report Share Posted February 12, 2005 Vispār ir iespējams ielikt web lapā lapu ar include , ja šai liekamajai lapai ir ielikta lapa ar include :D Link to comment Share on other sites More sharing options...
orion Posted February 12, 2005 Report Share Posted February 12, 2005 A kamdēļ gan lai nevarētu??? Nekādas problēmas nav radušās un arī nevarētu rasties... Link to comment Share on other sites More sharing options...
bumbieriic Posted February 12, 2005 Author Report Share Posted February 12, 2005 man kaut kā nesanāk :blink: Link to comment Share on other sites More sharing options...
orion Posted February 12, 2005 Report Share Posted February 12, 2005 A kaa nesanaak?? Kaa meegjini? Paraadi kaadu piemeeru. Inkluudojot failu no citas direktorijas un tajaa atkal inkluudojot failu, kas tam ir blakus - 3-ais fails ir jaainkluudo ar tieshi taadu pashu celju, kaa otrais!! Jo celjsh ir no pirmaa faila, nevis no otraa!! Nemaaku pareizi izskaidrot, bet tas taa ir (: Piemeeram: index.php --> inkluudojam failu files/inc.php ieksh inc.php gribam inkluudot failu, kas atrodas direktorijaa "files" incluudojam jamo nevis -> kaa fails.php, bet kaa files/fails.php !! NU kkā šitā. Varbūt ir kkas cits tev tur, bet pieļauju, ka vienkāršu ceļš uz trešo failu nav pareizi norādīts... Link to comment Share on other sites More sharing options...
bumbieriic Posted February 12, 2005 Author Report Share Posted February 12, 2005 (edited) atvainojos, neskaidri izteicos :rolleyes: nerādas tad ja ir ši tā if($id=="kautkas"){ include("sazinko.php"); } ?> tad gan negrib rādīties :( Edited February 12, 2005 by bumbieriic Link to comment Share on other sites More sharing options...
orion Posted February 12, 2005 Report Share Posted February 12, 2005 (edited) Paarbaudi mainiigo $id, varbuut ka vinjsh !='kautkas' vienmeer paarbaudi mainiigo veertiibas, pirms prasi padomu kaadam citam. Ja jams na pareizs, tad meklee - kaapeec! Paskaties vai bes if-a tev incluudojas! Ja jaa, tad vaina mainiigajaa, kursh nav ar preizu veertiibu un attieciigi neizpildaas... Edited February 12, 2005 by orion Link to comment Share on other sites More sharing options...
bumbieriic Posted February 12, 2005 Author Report Share Posted February 12, 2005 bez if ar neiet Link to comment Share on other sites More sharing options...
orion Posted February 12, 2005 Report Share Posted February 12, 2005 paskaties vai tev straadaa ar šādiem 3 elementāriem failiem: index.php <?PHP include'inc.php'; ?> inc.php <?PHP include'piu.php'; ?> piu.php <?PHP echo'incluudojam veselu kaudzi failu, šim uzrkastam jāparādās atverot index.php!'; ?> Atverot index.php būtu jāparādās piu.php tekstam! 100% ka šitais strādā. Ja tev strādā - tad meklē vainu ceļa uz failu. Vai arī tev tas fails pavisam ir tukšh. Iemet kādu kontrol tekstu jamā... Ja nedarbojas - nu, tad es nezinu.. ,kkas tev tur nojāts (((: Link to comment Share on other sites More sharing options...
bumbieriic Posted February 12, 2005 Author Report Share Posted February 12, 2005 ;) :D paldies nu iet Link to comment Share on other sites More sharing options...
bumbieriic Posted February 12, 2005 Author Report Share Posted February 12, 2005 :( šis der tikai priekš teksta, a kas jādara lai includotu veselu darbību? Link to comment Share on other sites More sharing options...
bubu Posted February 12, 2005 Report Share Posted February 12, 2005 Kas ir teksts un kas ir darbība? Link to comment Share on other sites More sharing options...
blackhalt Posted February 12, 2005 Report Share Posted February 12, 2005 atvainojos, neskaidri izteicos :rolleyes: nerādas tad ja ir ši tā if($id=="kautkas"){ include("sazinko.php"); } ?> tad gan negrib rādīties :( 13642[/snapback] <?php if($_GET['id']=='kautkas'){ include('sazinko.php'); } ?> Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 15, 2005 Report Share Posted February 15, 2005 maza piebilde: Inkludojamam failam (ja vien tas nav parasts text vai "pliks" HTML arii jaabuut ar PHP sakuma tegiem ?PHP un attieciigi arii aizveroshajiem !!! faktiski PHP (savaa zinjaa) incluudoto failu uzskata par savdabiigu funkciju- ja includotajaa failaa pa vidu ierakstiit RETURN tad includotaa faila izpide - tiks aptureeta un vadiiba atgriesta failam (scenaarijam kas to izsaucis) $a="kautkas 111"; return $a; $a="kautkas 2222"; // tiek pilniibaa ignoreets ?> un tiks izsaukts saadi: <?php $a=include("bla.php"); echo $a; ?> tiks izvadiits kautkas 111 nevis kautkas 222 kaa vareetu likties P.S. manuaalis manuaalis un velreiz manuaalis ;) Link to comment Share on other sites More sharing options...
PheliX Posted February 15, 2005 Report Share Posted February 15, 2005 tiesh taa! :D Link to comment Share on other sites More sharing options...
bubu Posted February 15, 2005 Report Share Posted February 15, 2005 Nu tak normāla include darbība! Pilnīgi tāpatās kā #include iekš C/C++. (vienīgi tur tas kods neizpildās incldue stadījā, bet tikai kompilējas) Link to comment Share on other sites More sharing options...
Recommended Posts