herry Posted March 30, 2004 Report Share Posted March 30, 2004 Kaa failiem "iestaastiit", kur saakas jauna rinda? Vispirms atvainojos par mulkjiigo jautaajumu. Situaacija taada - lapas viesis ieraksta datus formas laukaa un shie dati tiek saglabaati faila_nosaukums.inc no kurienes veelaak tiek ielikti citaa lapaa izmantojot include. Problema ir apstaaklii, ka viss tiek izmests aaraa vienaa rindaa, neatkariigi cik reizes spiests enter . Apzinos, ka atbilde ir mekleejuma manuaalii, bet diemzheel man sobriid nav iespeejams izstudeet visu manuaali Link to comment Share on other sites More sharing options...
trinklins Posted March 30, 2004 Report Share Posted March 30, 2004 Jautājums tiešām stulbs $fails = fopen("fails.txt","w"); fwrite($fails,"pirmaa rindinja\notraa rindinja"); fclose($fails); karoche \n -sitais joks dod jaunu rindinju Link to comment Share on other sites More sharing options...
des Posted March 30, 2004 Report Share Posted March 30, 2004 ir taada funkcija nl2br.... Link to comment Share on other sites More sharing options...
herry Posted March 30, 2004 Author Report Share Posted March 30, 2004 ir taada funkcija nl2br.... Nekorekti jautaajumu laikam uzstaadiiju. Lapas apmekleetaajs aizpilda formu liidziigu, kaa postojot sheit. Kaa panaakt, lai pie izvada arii ir vairaakas rindkopas? Link to comment Share on other sites More sharing options...
trinklins Posted March 30, 2004 Report Share Posted March 30, 2004 (edited) nu nezinu vai pareizi sapratu bet manuprāt izveido tabulu un dod šūnai šo izvades vērtību un tad vajadzētu izvadīties vairākas rinkopās :blink: atvainojos pa nesapratni Edited March 30, 2004 by trinklins Link to comment Share on other sites More sharing options...
rnc Posted March 30, 2004 Report Share Posted March 30, 2004 $teksts = str_replace("\n","<br />",$teksts); Ja to tu domaaji.. Link to comment Share on other sites More sharing options...
herry Posted March 30, 2004 Author Report Share Posted March 30, 2004 $teksts = str_replace("\n","<br />",$teksts); Ja to tu domaaji.. http://theparadise.no.lv/cards/cards.html Bildes ir par lielas un daudz, bet ne par to jautaajums. Link to comment Share on other sites More sharing options...
des Posted March 30, 2004 Report Share Posted March 30, 2004 Tjipa Tu peec tam suuti uz mailu, un Tu gribi, lai sanjeemeejs redz tos enterus? Link to comment Share on other sites More sharing options...
herry Posted March 30, 2004 Author Report Share Posted March 30, 2004 Tjipa Tu peec tam suuti uz mailu, un Tu gribi, lai sanjeemeejs redz tos enterus? Tieshi taa Link to comment Share on other sites More sharing options...
des Posted March 30, 2004 Report Share Posted March 30, 2004 Saakumaa uztaisi to nl2br, taad, suutot mailu, pie header pieliec klaat: "Content-type: text/html; charset=windows-1257\r\n" tagad galaa mails tiks interpreteets kaa html un br tiks normaali atteeloti kaa enteri. Link to comment Share on other sites More sharing options...
trinklins Posted March 31, 2004 Report Share Posted March 31, 2004 $handle = fopen(getcwd()."\Mans.txt","r"); while (!feof($handle)) { $simbols=fread($handle,1); if (ord($simbols) == 10) echo "<br>"; else echo "$simbols"; } fclose($handle); shitais it kaa straadaa Link to comment Share on other sites More sharing options...
Recommended Posts