I want something similar like JavSacript's window.open()
method, which I can use to open a particular URL, for example, https://www.google.com/.
Is there a way in pure PHP
where I can do the same thing?
I know we can do that using selenium in python. I think guzzle
might be of some help but I can not find anything useful on the web on that. Thanks in advance.
Although you can not open a new window through PHP directly, you can use:
header("Location: <LOCATION_TO_REDIRECT>");
To redirect the current browser window to the specified URL.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With