Grabber Posted October 6, 2003 Report Posted October 6, 2003 Ir fails "hmm.php" Kaa iemaaciit vinju saprast, ka lapaa mainaas valoda? Man tajaa failaa viss uz "<? include ?>" straadaa. Nu apmeeram taa: <? include($DOCUMENT_ROOT . "/www/top.php"); ?> <? include($DOCUMENT_ROOT . "/www/menuEn.php"); ?> <? if ($hmm==about) { include($DOCUMENT_ROOT . "/www/txt/1.php"); } elseif ($hmm==privet) { include($DOCUMENT_ROOT . "/www/txt/2.php"); } else { include($DOCUMENT_ROOT . "/www/txt/0.php"); } ?> <? include($DOCUMENT_ROOT . "/www/end.php"); ?> man ir izveidoti faili, tjipo "menuRu.php (tas ir menu krieviski)" un "1Ru.php (tas ir tеxt krieviski)". Shaadi vinsh man met aaraa Parse Error: <? if ($hmm==Ru) { include($DOCUMENT_ROOT . "/www/top.php"); } { include($DOCUMENT_ROOT . "/www/menuRu.php"); } { include($DOCUMENT_ROOT . "/www/txt/1Ru.php"); } { include($DOCUMENT_ROOT . "/www/end.php"); ?> Kaa man integreet shamo skriptu tajaa visaa iekshaa? <? if(isset($_GET['lang'])) { $lang=(_GET(lang)); header("Location:$PHP_SELF?lang=$lang"); exit; }else { $lang=''; } ?> P.S. Un kaa peec tam likt linku Text failaa (1Ru.php) un failu hmm.php? Vai arii varbuut (ja nav paaraak gruuti), tad iesakiet man kaadu citu shiis probleemas risinaajumu skriptos. jau ieprieksh PALDIES!!! :)
jannis Posted October 6, 2003 Report Posted October 6, 2003 izlasi mosh shito http://php.lv/f/index.php?act=ST&f=5&t=279
Grabber Posted October 10, 2003 Author Report Posted October 10, 2003 to jannis -> Tak man jau nav datubaazes tam saitam. Eh, varbuut tomeer kaads uzmetiis aci shamajai padariishanai? PLZZ! Kaa mainiit valodu, ja saits ir shitaads (fails"hmm.php")? Un pie tam mainoties valodai man ir jaapaliek tai pashaa lapelee, tikai ar citu tekstu. Nu tjip, ja es atveru "turp" "ru" val., tad nomainot to uz "en" es palieku sadaljaa "turp", tikai ar "en" tekstu (fails saucaas "test1_en.php"). <body topmargin="0" leftmargin="0"> <? include($DOCUMENT_ROOT . "/www/top.php"); ?> <? include($DOCUMENT_ROOT . "/www/menu.php"); ?> <? if ($ru==turp) { include($DOCUMENT_ROOT . "/www/test1.php"); } elseif ($ru==shurp) { include($DOCUMENT_ROOT . "/www/test2.php"); } else { include($DOCUMENT_ROOT . "/www/test.php"); } ?> <? include($DOCUMENT_ROOT . "/www/test3.php"); ?> </body> $ru - taa ir pirmaa valoda. $en - taa ir otraa valoda. $de - taa ir treshaa valoda. Failaa "top.php" linki iet shitaa: <? if ($ru==turp) echo ("<img border='0' src='im/rus1.gif' name='t1' width='11' height='10'>"); else { echo ("<a href='hmm.php?ru=turp' onmouseover=MMOn('t1') onmouseout=MMof('t1')> <img border='0' src='im/rus.gif' name='t1' width='11' height='10'></a>"); } ?> Un kaa man peec tam rakstiit linku failaa "top.php"? Gribeetos, lai viss straadaatu no viena faila -> "hmm.php", jo izmeetaajot failus pa mapiiteem tjipo "en/" un "de/" naacaas taisiit failus "hmm2.php" un "hmm3.php". Vopshchem gribaas noshauties... :'( Paliidziet man luudzu ar shamo jautaajumu!
Recommended Posts