DelNet Posted June 29, 2003 Report Share Posted June 29, 2003 Kaut kur vienreiz usduuros lietai kur tas bija pteikts bet tad atkal aizmirsu, un nu tas ir vajadziigs. kaa uzveidot to lai ja piem links ir "xxx/redirect.php?forum" lai tas aizmestu arii uz forumu? vajadzeetu ivenu taadu redirect php failu.... Link to comment Share on other sites More sharing options...
d00shBag Posted June 29, 2003 Report Share Posted June 29, 2003 kaads vareetu patikt kapee neit ssitas kods ? http://paste.php.lv/191 Link to comment Share on other sites More sharing options...
jannis Posted June 29, 2003 Report Share Posted June 29, 2003 2 delnet: tu domaa f-ju header()? Link to comment Share on other sites More sharing options...
d00shBag Posted June 29, 2003 Report Share Posted June 29, 2003 jaanis tu ar maniim ? Link to comment Share on other sites More sharing options...
jannis Posted June 29, 2003 Report Share Posted June 29, 2003 2 d00shBag: kas tieshi neiet, met kaadu ererru vai warningu, vai ir balta lapa? Link to comment Share on other sites More sharing options...
d00shBag Posted June 29, 2003 Report Share Posted June 29, 2003 ie4ekot var te http://81.198.18.67/stats.php varbuut tu vareetu ienaakt chataa ? /server irc.delfi.lv #php.rulzz es tur tevi gaidiissu. Link to comment Share on other sites More sharing options...
Venom Posted June 29, 2003 Report Share Posted June 29, 2003 visefektīgākais: <meta http-equiv="refresh" content="pēc cik sek (0); url=kur (http://)"> ja nav nogriezts output_bufferings (off iekš php.ini), vai pašā lapas augšā: header("Location: http://kur"); un arī ar JS var šo to padarīt: <script>location.href='http://kur';location.reload(); vai location.replace('http://kur');location.reload();</script> tas reloads vajadzīgs dažiem brauzeriem, kuriem nepielec, ka uztaisīts redirekts (it kā pamainīta adrese iekš adressbara, bet naff nospiests ENTERs) Link to comment Share on other sites More sharing options...
K|NG Posted June 29, 2003 Report Share Posted June 29, 2003 iesaku <code><font color="#000000"> <font color="#0000CC"><?php [url=http://lv.php.net/header]header[/url]</font><font color="#006600">(</font><font color="#CC0000">"Location: redirect.php?forum"</font><font color="#006600">); </font><font color="#0000CC">?></font> </font> </code> jā būt pašā lapas augšā, ja tas ir tikai vienkāršs redirekts, bet var jau sakodēt ar ifiem elsiem paredzot n gadījumus ka nav šitā vai tā, un salikt vairākus tos kurus minēja Venom ;) vispār iekš Operas var atslēgt tos redirektus... Link to comment Share on other sites More sharing options...
DelNet Posted June 30, 2003 Author Report Share Posted June 30, 2003 nee doma nav saprasta varbuut (un man ir lielas aizdomas) ka shauju garaam Bet man vajag lai ja padod linku "www.xxx.lv/redirect.php?forum" lai tas aizved uz piem "www.xxx.lv/aaa/bbb/ccc/forum.php" Link to comment Share on other sites More sharing options...
jannis Posted June 30, 2003 Report Share Posted June 30, 2003 nu un kaadas probleemas? nevari pac izdomaat un salikt kopaa to ko pasaka? tad taisi linku www.xxx.lv/redirect.php?cat=forum un tajaa redirect.php <?php //tjipa saakuma ar switch vai kaut vai ar if izstuko uz kuru lapu vediis forum header("Location: kaut_kaada_lapa.php"); ?> cerams ka ar switch esi iepazinies? (ja ne, tad manuaalii pietiekoshi labi piemeeri) Link to comment Share on other sites More sharing options...
Recommended Posts