selenin Posted February 5, 2011 Share Posted February 5, 2011 Hi Is there another function then header() in php for forwarding? Link to comment https://forums.phpfreaks.com/topic/226827-url-forwarding-php/ Share on other sites More sharing options...
BlueSkyIS Posted February 5, 2011 Share Posted February 5, 2011 are you having a problem with header() that we might help you with? Link to comment https://forums.phpfreaks.com/topic/226827-url-forwarding-php/#findComment-1170462 Share on other sites More sharing options...
lastkarrde Posted February 5, 2011 Share Posted February 5, 2011 The only way to redirect in PHP is header("Location: http://example.com") However you could echo out some javascript which would redirect the browser. <script type="text/javascript"> window.location = 'http://example.com'; </script> Link to comment https://forums.phpfreaks.com/topic/226827-url-forwarding-php/#findComment-1170472 Share on other sites More sharing options...
gizmola Posted February 6, 2011 Share Posted February 6, 2011 There's also the meta refresh. The bottom line is that "forwarding" is a function of the browser. All PHP can do is to try and instruct the browser to change pages. It is up to the browser to accept or reject this request. Link to comment https://forums.phpfreaks.com/topic/226827-url-forwarding-php/#findComment-1170478 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.