Should I use "return;" after a header()?
Posted
by Scarface
on Stack Overflow
See other posts from Stack Overflow
or by Scarface
Published on 2010-03-30T20:21:08Z
Indexed on
2010/03/30
20:23 UTC
Read the original article
Hit count: 86
php
Quick question, I noticed that on some of my header directors I was getting some lag while the header processed. Is using return standard after using headers? Also if you use a header on pages you don't want directly accessed, such as processing pages will return; stop that processing even if the page is not directly accessed? IF return is a good idea would it be better to use exit()?
© Stack Overflow or respective owner