Ancient Temple City

PHP - header('location: ..') not working

It occurs if you're echo-ing text to the browser before sending the header('location').
You can not send content to your browser before executing a header(), as your echo will force a header to be sent.

Comment these lines out and see if it works:

// echo $variable;
// print_r($array);
//.....


Now your header will be sent and you will be redirected.
Labels:
Reactions:

Post a Comment

[blogger]

MKRdezign

{facebook#http://www.facebook.com/GTVCreations} {twitter#http://www.twitter.com/GTVCreations} {google-plus#http://www.google.com} {pinterest#http://www.pinterest.com} {youtube#http://www.youtube.com} {instagram#http://www.instagram.com}

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget