voldemarz Posted January 5, 2006 Report Share Posted January 5, 2006 Kods: <? $value = 'something from somewhere'; setcookie("TestCookie",$value); ?> Izmet sidaatu pazinojumu: Warning: Cannot modify header information - headers already sent by (output started at x:\home\localhost\www\2.php:1) in x:\home\localhost\www\2.php on line 3 Ko man dariit, lai vins tomeer to cepumu nosuuta, kopaa ar headeri. Kas vareetu buut pie vainas? Link to comment Share on other sites More sharing options...
hmnc Posted January 5, 2006 Report Share Posted January 5, 2006 jopcik! LASĪT NEMĀKI?!?!?!?! Cannot modify header information - headers already sent by Link to comment Share on other sites More sharing options...
voldemarz Posted January 5, 2006 Author Report Share Posted January 5, 2006 neuztraucies maaku. tas kods ir vienigais kas ir tajaa 2.php, tas nav nekaads izgriezums no kaut kurienes. viss peec idejas (vismaz man taa liekas) ir kaa vajag, jo vins atrdoas, pirms jeb kaa cita (nekaa cita nav) cookies must be sent before any output from your script Link to comment Share on other sites More sharing options...
hmnc Posted January 5, 2006 Report Share Posted January 5, 2006 nu bļin! tad kaut kāds outputs tomēr ir, tev tā neliekas?!?!?! un kas mums tagad minēt un gaišreģot kolektīvi kas tev tur par kodu visu?!?! Link to comment Share on other sites More sharing options...
Shaman`is Posted January 5, 2006 Report Share Posted January 5, 2006 domāju, atbilde ir vienkārša. pirms "<?" pašā sākumā Tev ir kādas atstarpes? tukšas rindiņas? ja jā, tad viņas tiek aizsūtītas uz browseri un nekas nestrādā... Link to comment Share on other sites More sharing options...
Grey_Wolf Posted January 5, 2006 Report Share Posted January 5, 2006 varu dereet ka ir atstarpe, parnese jaunaa rindaa, vai fails saglabaats kaa UTF-8 attieciigi ar vinja simbolinjiem faila sakumaa... P.S. Nedriiks buut nekaada izvade - pat atstarpe, vai parnese jaunaa rindaa - vardu sakot nekas... Link to comment Share on other sites More sharing options...
Vebers Posted January 5, 2006 Report Share Posted January 5, 2006 (edited) Mūsdienās cilvēki pat search'u izmantot ir slinki.. Šitie topiki par "Header already sent.." tiešām kaitina jau... Edited January 5, 2006 by MakaTaNaw Link to comment Share on other sites More sharing options...
voldemarz Posted January 5, 2006 Author Report Share Posted January 5, 2006 vaina laikam bija saglabaatajaa encodingaa, man staaveeja UTF-8, nomainiiju uz ansi it kaa rabotajet kadu encoding labaak lietot? Link to comment Share on other sites More sharing options...
Vebers Posted January 5, 2006 Report Share Posted January 5, 2006 Labāk lietot ir UTF-8. Notepad2 ar to nav problēmu bijis nekad. Link to comment Share on other sites More sharing options...
v3rb0 Posted January 5, 2006 Report Share Posted January 5, 2006 to encodingu kura tev texts ir - nav labaks/sliktaks enkodings :) Link to comment Share on other sites More sharing options...
voldemarz Posted January 5, 2006 Author Report Share Posted January 5, 2006 Saglabaajuar notepad2, kaa UTF-8, straadaa. Atveeru ar Ultra edit un arii straadaaja. A jautaajums, nafig ieprieks nestradaaja? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted January 5, 2006 Report Share Posted January 5, 2006 voldemarz--> par shiim teemaam ir runaats rinkjii apkaart.. vismaz reizi 2 nedeljaas shis jautaajums tiek cilaats Saglabaajot UTF-8 failam priekshaa tiek pierakstiiti 3 simboli kas editoriem ljau atpaziit ka dotais dokuments ir UTF-8 pirms publiceeshanas vienkaarshi tos simbolus nodzes un viss... Link to comment Share on other sites More sharing options...
voldemarz Posted January 5, 2006 Author Report Share Posted January 5, 2006 aa, Ultra edit vinju saglabaaja "UTF-8 with signature", taa signature laikam bija vainiiga Link to comment Share on other sites More sharing options...
Blackout Posted January 6, 2006 Report Share Posted January 6, 2006 Tu nelieto nekādu free hostingu, man tāds gluks bija ar sessijām. Link to comment Share on other sites More sharing options...
Paulinjsh Posted January 6, 2006 Report Share Posted January 6, 2006 Blackout esi nokavējis, šitā problēma jau atrisināta! Link to comment Share on other sites More sharing options...
Recommended Posts