戻る

解答例

PHP

<?php
header("Content-type: text/html; charset=utf-8");

if(!$fp = @fopen("data/FIFARank.txt","r")){
	echo "ファイルを開けませんでした!<br>";
	exit();
}

echo mb_convert_encoding(fgets($fp),"utf-8","shift_jis");

fclose($fp);
?>

inserted by FC2 system