Hi all,
Sorry if this is blatantly obvious, but I've Googled this and I seriously cannot find any PHP-only way to do it.
Without using an HTML or Javascript - pure PHP only (from a Controller file in a CodeIgniter site) - how can I open a browser window with a link I specify?
Is it possible?
Thanks!
Jack
Edit: it seems some people are misinterpreting what I mean, I apologise for not making it clear enough. I know with PHP you can set header("Location: http://site.com")
to make the browser load a new window; I wanted to know if it was possible to send a header to say "open the Location
in a new window".
Edit 2: to clarify what I want to do: the user can submit something to my site. Before clicking 'Submit', they can opt (via checkbox) to Tweet about it. If the checkbox is ticked, after everything's inserted into the database etc. a new window/tab loads with the URL http://twitter.com/home?status=Hello%20World
or whatever the tweet will say. The user will have opted to do this so I'm not "doing something I shouldn't". I understand in hindsight though, that there probably is a better way of doing this.