PHP标题重定向在新窗口中?

san*_*ers 3 php redirect

对于横幅管理系统,我使用a

 header("Location: http://www.awebsite.com");
Run Code Online (Sandbox Code Playgroud)

重定向到正确的网站.是否可以强制此标题脚本在新窗口中打开?

and*_*ecu 6

<a href='yourbannerscript.php' target='_blank'>...</a>
Run Code Online (Sandbox Code Playgroud)

  • 这不符合最初的需要.使用PHP`head()`函数,它根本不可能:http://stackoverflow.com/questions/12539011/header-location-in-new-tab (3认同)