-3

サーバールートにファイルがあります:

<?php 
  header("Location: http://www.google.com/", true); //this does not work
  //echo "Test"; //this is tested and works.
?>

私のphp.iniファイルはどこか間違っていますか、それともなぜですか?

4

2 に答える 2

6

ヘッダーの名前を忘れました:

header("Location: http://example.com");
于 2013-07-07T09:59:21.073 に答える