Welcome Guest, Not a member yet? Register   Sign In
Warning show up when using redirect($url, 'refresh');
#2

[eluser]Vlad Balmos[/eluser]
You are not allowed to output anything to the browser before sending http headers. As to why it works on your local machine i don't really know. It shouldn't work Smile.
If you really need to refresh the page after outputing a message, you could try a redirect using javascript
Code:
[removed]
   var newUrl = '<?php echo $newUrl;?>';
   setTimeout(function() {
      [removed].href = newUrl;
   }, 5);
[removed]

Or something like that Smile


Messages In This Thread
Warning show up when using redirect($url, 'refresh'); - by El Forum - 07-28-2011, 09:46 PM
Warning show up when using redirect($url, 'refresh'); - by El Forum - 07-29-2011, 01:34 AM
Warning show up when using redirect($url, 'refresh'); - by El Forum - 07-29-2011, 02:34 AM
Warning show up when using redirect($url, 'refresh'); - by El Forum - 07-29-2011, 02:41 AM
Warning show up when using redirect($url, 'refresh'); - by El Forum - 07-29-2011, 02:49 AM
Warning show up when using redirect($url, 'refresh'); - by El Forum - 07-29-2011, 03:15 AM
Warning show up when using redirect($url, 'refresh'); - by El Forum - 07-29-2011, 04:18 AM
Warning show up when using redirect($url, 'refresh'); - by El Forum - 07-29-2011, 04:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB