lazda144 Posted January 3, 2008 Report Share Posted January 3, 2008 kaa var uztaisiit lai piemeeram ja es ieeju lapa.php vina peec 1 sekundes automaatiski refreŠojas , bet tikai vienu reizi?? Link to comment Share on other sites More sharing options...
martins256 Posted January 3, 2008 Report Share Posted January 3, 2008 meta tagos liec to refresh + ar sesijām panāksi, ka 1 reizi! Link to comment Share on other sites More sharing options...
andrisp Posted January 3, 2008 Report Share Posted January 3, 2008 Var arī ar header() nosūtīt "Refresh: 1; url=blabla". Link to comment Share on other sites More sharing options...
lazda144 Posted January 3, 2008 Author Report Share Posted January 3, 2008 par meta tag zinu bet kaa taas sesijas?? Link to comment Share on other sites More sharing options...
andrisp Posted January 3, 2008 Report Share Posted January 3, 2008 if (!isset($_SESSION['has_been_redirected'])) { $_SESSION['has_been_redirected'] = 1; echo '<meta>'; } else { unset($_SESSION['has_been_redirected']); } Link to comment Share on other sites More sharing options...
Aleksejs Posted January 3, 2008 Report Share Posted January 3, 2008 Ja sesijā rakstīts, ka vienreiz jau refrešojās, tad vairs neiekļauj meta tagu. Link to comment Share on other sites More sharing options...
lazda144 Posted January 3, 2008 Author Report Share Posted January 3, 2008 chota nerefreŠo Link to comment Share on other sites More sharing options...
andrisp Posted January 3, 2008 Report Share Posted January 3, 2008 Parādi kodu. Link to comment Share on other sites More sharing options...
lazda144 Posted January 3, 2008 Author Report Share Posted January 3, 2008 (edited) viss mans php fails http://paste.php.lv/6683 Edited January 3, 2008 by lazda144 Link to comment Share on other sites More sharing options...
andrisp Posted January 3, 2008 Report Share Posted January 3, 2008 Nujā - nokopējis arī 1:1, neskatoties... Tas <meta> ir jāaizvieto ar attiecīgo meta tagu un visiem atribūtiem. Pagūglē: meta redirect Link to comment Share on other sites More sharing options...
mounkuls Posted January 3, 2008 Report Share Posted January 3, 2008 par meta tag zinu bet kaa taas sesijas?? Nu ja zini, to jau ari jaliek tai <meta> vieta. Pashu kodu, ko andrisp ielika ari jalieto pie parejiem meta, ne koda beigas. Link to comment Share on other sites More sharing options...
Mikijs Posted January 3, 2008 Report Share Posted January 3, 2008 (edited) Ieliec <Head> dalja if ($mikijs) { unset($mikijs); } else { echo "<META HTTP-EQUIV=Refresh CONTENT='1; URL=".PHP_SELF."?mikijs=1'>"; } Edited January 3, 2008 by Mikijs Link to comment Share on other sites More sharing options...
andrisp Posted January 3, 2008 Report Share Posted January 3, 2008 Mikijs, ar register_globals un izslēgtām noticēm kodējam ? Tagus arī MS stilā pierakstam ? :) Link to comment Share on other sites More sharing options...
Mikijs Posted January 3, 2008 Report Share Posted January 3, 2008 Mikijs, ar register_globals un izslēgtām noticēm kodējam ? Tagus arī MS stilā pierakstam ? :) :D Vnk patik but redzammam :D Link to comment Share on other sites More sharing options...
lazda144 Posted January 3, 2008 Author Report Share Posted January 3, 2008 Mikijs peec tava vins refreš ik pee sekundes !! Varuut vnk redirect uz to pasu link?? Link to comment Share on other sites More sharing options...
Recommended Posts