For banner management system I use
header("Location: http://www.awebsite.com");
to redirect to the appropriate website. Can I make this script header open in a new window?
<a href='yourbannerscript.php' target='_blank'>...</a>
No. If you want to create a new window, you need to send the redirect in the form of HTML / Javascript.
echo "<script>window.open('yoursite.com');</script>";
, , , , IFRAME, php , . , .
<iframe src="/myredirectscript.php"></iframe>
, , Open Open
, , , :
<meta http-equiv="refresh" /> <meta content="0; URL=javascript:window.open('http://uri.of .your.pagewhereyouwabtoredirect/path','_parent');"/>
Source: https://habr.com/ru/post/1709765/More articles:Good place to host auto-generated code? - javaHow do I tell LINQ to ignore attributes that don't exist? - c #jquery next siblings - javascriptIs there a way to reorder the fields in the source SSIS file? - flat-fileКак имитировать использование большой базы данных с SQL Server 2005 - sql-server-2005Location of the title in a new tab - phpExpand SQL statement in Java - javaShould I use cryptographic message syntax (CMS) for this task? - cryptographyИмпорт файла dmp, созданного DataPump в Oracle Express 10g - oracle-xeCreate an icon for a link, which is JavaScript? - javascriptAll Articles