I know this is very basic and I've never had the need before, but I want a PHP redirect to break out of any iframe (if applicable).
Is this possible?
I know that PHP sends a header to the browser, so it should be, but I can't see this anywhere.
So if I use this code then it always changes the parent and not just any iframe window:
<?php
header('Location: http://domain.com/');
?>
Of course this works, but I need it done from PHP:
<a href="page.php" target="_parent">
I'm using Symfony2 so will need to get it working in that too.
No JavaScript. PHP only (if possible).