mazaisDeagle Posted March 23, 2005 Report Share Posted March 23, 2005 taa es ari daru! vienalga man tas kas tajaa failaa ko vajadzetu atvert ir rakstiits kreisajaa malaa un blakus tam ir manas lapas index.php lapa! Link to comment Share on other sites More sharing options...
bubu Posted March 23, 2005 Report Share Posted March 23, 2005 taa es ari daru! vienalga man tas kas tajaa failaa ko vajadzetu atvert ir rakstiits kreisajaa malaa un blakus tam ir manas lapas index.php lapa! 15474[/snapback] Tu pats savu otro teikumu saproti, bez komatu lietošanas? Link to comment Share on other sites More sharing options...
rudzis Posted March 23, 2005 Report Share Posted March 23, 2005 Tas ir mans kods!!! Un iegaumējiet to!!! :D Link to comment Share on other sites More sharing options...
Osiris Posted March 23, 2005 Report Share Posted March 23, 2005 (edited) A tu negribi pameģināt tā: Index.php: <? $body=$head; $body.=$menu; if($lp=="downloads") { require('downloads.php'); $body.=$downloads_txt; } elseif($lp=="kautkas") { require('kautkas.php'); $body.=$kautkas_txt"; } else $body.="Txt txt txt txt"; $body.=$foot; echo $body; ?> Tik vienkarši! Un nekas tev nesamaisīsies! Paņem kādu gatavu skriptu no ineta un paskaties kā tas ir nokārtots. Edited March 23, 2005 by Osiris Link to comment Share on other sites More sharing options...
Kavacky Posted March 23, 2005 Report Share Posted March 23, 2005 Ja darītu tā, vai nebūtu labāk jau uzreiz izvadīt $head un $menu? Garu stringu lipināšana nav tas ātrākais process. Link to comment Share on other sites More sharing options...
blackhalt Posted March 23, 2005 Report Share Posted March 23, 2005 Neko nesapratu. RTFM Link to comment Share on other sites More sharing options...
Osiris Posted March 23, 2005 Report Share Posted March 23, 2005 (edited) uzreiz izvadīt $head un $menu 15481[/snapback] Bet ja tev pievenosies kaut kadi headeri , teiksim Header("Cache-Control: no-cache"); Header("Cache-Control: must-revalidate"); Header("Pragma: no-cache"); Header("Expires: 0"); // vai $refresh=header (Location: 'XXXXXXX"); Izvadīt ar echo/print var tikai beigās. Divreiz nesanāks (IMHO). Edited March 23, 2005 by Osiris Link to comment Share on other sites More sharing options...
Osiris Posted March 23, 2005 Report Share Posted March 23, 2005 Neko nesapratu.RTFM 15482[/snapback] Ko tieši ? Link to comment Share on other sites More sharing options...
bubu Posted March 23, 2005 Report Share Posted March 23, 2005 Izvadīt ar echo/print var tikai beigās. Divreiz nesanāks (IMHO). 15483[/snapback] ob_start(); ? Link to comment Share on other sites More sharing options...
Osiris Posted March 23, 2005 Report Share Posted March 23, 2005 (edited) ob_start(); ? 15485[/snapback] Tik dziļi nezinu... Edited March 23, 2005 by Osiris Link to comment Share on other sites More sharing options...
Kavacky Posted March 23, 2005 Report Share Posted March 23, 2005 Bet derētu gan... ;) Link to comment Share on other sites More sharing options...
Osiris Posted March 23, 2005 Report Share Posted March 23, 2005 (edited) Pagaidam nebija laimes satikt :) Bet palasīšu manuālu Edited: pagaidām neko nesapratu... Pieradu izvadīt vienu reizi pašas beigās, jo mani skripti visi stradā zem vienīga index.php (pārejie ir inklūdi ar atsevišķam nodarbībam) Edited March 23, 2005 by Osiris Link to comment Share on other sites More sharing options...
mazaisDeagle Posted March 24, 2005 Report Share Posted March 24, 2005 ar shito kodu <? $body=$head; $body.=$menu; if($lp=="dirsinsh") { require('downloads.html'); $body.=$downloads_txt; } elseif($lp=="kautkas") { require('kautkas.php'); $body.=$kautkas_txt"; } else $body.="Txt txt txt txt"; $body.=$foot; echo $body; ?> kad es meginu palaist to failu .. (attieciigi index.php) man paradas Parse error: parse error, unexpected '"' in c:\apache\www\indexii.php on line 11 Link to comment Share on other sites More sharing options...
hmnc Posted March 24, 2005 Report Share Posted March 24, 2005 nu nav programmēšana priekš tevis! nav nav nav! necenties! lieks laika patēriņš - i pašam i citiem. dari varbūt tā - mīļi palūdz kādam no šī foruma, lai uztaisa tev to joku, kuru tev vajag, protams par attiecīgu samaksu. kas vainas? Link to comment Share on other sites More sharing options...
Osiris Posted March 24, 2005 Report Share Posted March 24, 2005 ar shito kode15520[/snapback] Pareizi, tur ir kļuda : $body.=$kautkas_txt"; Liekais " Sorry, rakstiiju bez paarbaudes, no galvas/// Link to comment Share on other sites More sharing options...
Recommended Posts