Christian Ista wrote: > Hello, > > Could you tell me a efficient solution for change page (new location) in > PHP? I tried this code : header("Location: mypage.php"); > note: HTTP/1.1 requires an absolute URI http://php.net/header > But in some case, I have error message "heade already send". Then I use a > javascript solution : window.location.href="mypage.php"; > > Is there a good solution in php ? > Check out 'headers_sent', you can choose how to redirect ('header' or JavaScript) depending on whether you have sent the headers or not. http://php.net/headers_sent HTH, cheers Silvio -- tradeOver | http://www.tradeover.net ...ready to become the King of the World? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php