PHP Redirect user to new URL

To redirect users to new location, just drop this header() line in your PHP file. Remember that header() function must be called before any actual output is sent, otherwise you might run into error.
  • 1
  • 2
  • 3
<?php header( 'Location:' ) ; ?>
  • Hi: I have a script and I can use sometimes Redirect Method but I see this error Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\cathy\shopping\cart_update.php:77)
New question is currently disabled!