OpenID(http://www.openidenabled.com/php-openid/) を利用する場合、リダイレクト処理 が行なわれますが IIS7.0では Header 処理の前に print や echo が実行されると この処理が実行されなくなるため注意が必要です。
以下のようなスクリプトはIIS7.0 では header処理 が実行されません。(IIS7.5 や Apache では実行されます)
<?php
echo “redirect test” ;
$redirect_url = “http://iis.museum-in-cloud.com” ;
header(”Location: “.$redirect_url);
?>
以下、実際に IIS7.0 で PHP OpneID のサンプルプログラムを稼動させるまでの手順を示します。
Read the rest of this entry »