+ 1

Links in php Redirect

how can i open links with php or redirect a page?

10th May 2017, 5:25 PM
Stefano Trinca
Stefano Trinca - avatar
3 Respostas
+ 20
header("Location:".URL); <-- redirect echo "<a id=link href=".URL." target=_blank>Link</a><script>onload=function(){document.getElementById('link').click();};</script>"; <-- open in new tab ........
10th May 2017, 6:08 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 2
Supporting @ValentinHacker: Server-sent redirects are usually better than doing it at the client.
11th May 2017, 3:02 AM
Kirk Schafer
Kirk Schafer - avatar
+ 1
yes, i would the server-sent redirects
23rd May 2017, 2:22 PM
Stefano Trinca
Stefano Trinca - avatar