executing PHP header location only if is browser
<p>I have a problem in my site with "visits" of  external pages.
The problem is in creation of cookies, my script try to create cookies on first visit. When the page is read from external page (like W3C) i am getting Redirect loop.
So how i can only execute <code>header("location:*");</code> in browsers.</p>
