Yazdığım
<?
header("Location:http://example.com");
?>
but Redirect is not occured. How to redirect?
But I do not have authority to edit php.ini So safe_mode is on in php.ini
Deneyin:
header("Location: http://example.com");
HTTP başlıklarını tam spec takip etmek gerekir. Daha buraya doğrudan (Yer header):
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30
İki şey:
this post Daha ayrıntılı bilgi için bkz.
Ayrıca yönlendirme yapmak için JavaScript kullanabilirsiniz ama ben PHP muhtemelen sizin durumunuzda daha iyi bir fikir olduğunu sanıyorum.