andrisp Posted September 30, 2005 Report Share Posted September 30, 2005 kaadus risinaajumus var izmantot ja nav iespeejams lietot header("Location: adrese.php") ? Link to comment Share on other sites More sharing options...
kaszu Posted September 30, 2005 Report Share Posted September 30, 2005 (edited) Javaskriptu: echo '<script LANGUAGE="JavaScript"><!-- window.location="http://www.citavieta.com/"; --></script>'; Edited September 30, 2005 by kaszu Link to comment Share on other sites More sharing options...
bubu Posted September 30, 2005 Report Share Posted September 30, 2005 Papildus javaskriptam vēl meta refresh keywordu arī. A kāpēc lai būtu aizliegts header('location... ? Link to comment Share on other sites More sharing options...
andrisp Posted September 30, 2005 Author Report Share Posted September 30, 2005 Javaskriptu: echo '<script LANGUAGE="JavaScript"><!-- window.location="http://www.citavieta.com/"; --></script>'; 23553[/snapback] paldies :) veel kautkaaa arii ir iespeejams ? Link to comment Share on other sites More sharing options...
shemeleks Posted September 30, 2005 Report Share Posted September 30, 2005 <meta http-equiv="Refresh" content="5; url=url.lv" /> Link to comment Share on other sites More sharing options...
andrisp Posted September 30, 2005 Author Report Share Posted September 30, 2005 Papildus javaskriptam vēl meta refresh keywordu arī. A kāpēc lai būtu aizliegts header('location... ? 23554[/snapback] nu ne aizliegts, bet nu ja serverii nav atljauts output buffering, tad header funkciju nevarees izmantot.. Link to comment Share on other sites More sharing options...
andrisp Posted September 30, 2005 Author Report Share Posted September 30, 2005 <meta http-equiv="Refresh" content="5; url=url.lv" /> 23556[/snapback] bet shito laikam nevareetu izmantot kautkur lapai pa vidu... Link to comment Share on other sites More sharing options...
Aleksejs Posted September 30, 2005 Report Share Posted September 30, 2005 Varēs, ja pirms header() izsaukšanas nav notikusi datu izvade (-; Link to comment Share on other sites More sharing options...
andrisp Posted September 30, 2005 Author Report Share Posted September 30, 2005 (edited) Varēs, ja pirms header() izsaukšanas nav notikusi datu izvade (-; 23559[/snapback] nu taa es arii domaaju :).. bet biezhi vajag to header arii peec tam.. UPDATE: bet tas droshi vien nav labais tonis ne ? <_< Edited September 30, 2005 by andrisp Link to comment Share on other sites More sharing options...
Aleksejs Posted September 30, 2005 Report Share Posted September 30, 2005 Nu tas jau ir gaumes jautājums... Neviens neliek taisīt echo... vari kabināt mainīgajam $izvade klāt visu, kas ir jāizvada. un tikai pēc visu nosacījumu izpildes uztaisīt vienu echo($izvade); Link to comment Share on other sites More sharing options...
bubu Posted September 30, 2005 Report Share Posted September 30, 2005 Tas ir nevis labais/nelabais tonis, bet slikta spēja organizēt savu kodu, ja tev iznāk, ka header vajag izsaukt jau pēc datu izvades. Link to comment Share on other sites More sharing options...
andrisp Posted September 30, 2005 Author Report Share Posted September 30, 2005 Tas ir nevis labais/nelabais tonis, bet slikta spēja organizēt savu kodu, ja tev iznāk, ka header vajag izsaukt jau pēc datu izvades. 23562[/snapback] mhmm... taa jau sapratu.... Link to comment Share on other sites More sharing options...
v3rb0 Posted September 30, 2005 Report Share Posted September 30, 2005 nu nevienmeer nespeja organizet kodu -- piemeram gribam kaut ko lielu dariit pa soljiem, kaa resaizot 100 bildes pa 10 uzreiz un raadiit progressbaru 30 of 100. var uzmociit shitaadu arii ar lapas redirectesanu bez ajax un co izmantosanaas. Link to comment Share on other sites More sharing options...
rpr Posted September 30, 2005 Report Share Posted September 30, 2005 ūja, ūja! ja no cli laiž php tad varbūt var izvadīt progresu, bet ne jau caur http. Link to comment Share on other sites More sharing options...
bubu Posted September 30, 2005 Report Share Posted September 30, 2005 Kas vainas izvadīt progesu caur http? Link to comment Share on other sites More sharing options...
Recommended Posts