kapec gan ne Posted June 20, 2012 Report Share Posted June 20, 2012 ir index.php fails <?php require 'header.php'; echo '<a href="http://site.com">link</a>'; ?> un header.php <?php header('Location: http://site.com'); exit; ?> index - http://localhost/ 1. ja lietotajs atverot lapu tiktu paradresets uz citu lapu no header('Location: http://site.com'); kads bus http_referer (ja bus vispar) 2. kads bus http_referer, ja index fails butu bez ta header.php un lietotajs parietu uz site.com vienkasi pa linku nevaretu ta but ka pirmaja gadijuma referer tiek sutis ka header.php? Quote Link to comment Share on other sites More sharing options...
Kavacky Posted June 20, 2012 Report Share Posted June 20, 2012 Test it. Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted June 20, 2012 Report Share Posted June 20, 2012 pie vienādas pārlūka konfigurācijas nebūs atšķirības starp 1 un 2. Vai nebūs... Nē nebūs - pārlūks nenokurienes to nevar uzzināt. Quote Link to comment Share on other sites More sharing options...
blackhalt Posted June 21, 2012 Report Share Posted June 21, 2012 index.php lapā ir:<pre class="prettyprint">require 'header.php';</pre> headeer.php lapā ir: <pre class="prettyprint">header('Location: http://site.com');exit;</pre> Līdz ar to - skripts pārtrauks savu darbību pie exit un nekāda linka vispār nebūs ;) Quote Link to comment Share on other sites More sharing options...
kapec gan ne Posted June 25, 2012 Author Report Share Posted June 25, 2012 index.php lapā ir:<pre class="prettyprint">require 'header.php';</pre> headeer.php lapā ir: <pre class="prettyprint">header('Location: http://site.com');exit;</pre> Līdz ar to - skripts pārtrauks savu darbību pie exit un nekāda linka vispār nebūs ;) noteikti visu manis rakstito neizlasiji un uzrakstiji kaut ko pilnigi nevajadzigu :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.