<html>
<head>
<title>write001.php??????????????</title>
</head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">

<body>

<h3>??????????write_data001.txt?????</h3>
?????charset=UTF-8??meta?????????????????????<br />
?write001.html?write001.php?write_data001.txt? <br />
??????????????????666??<br />
<?php
$str = $_POST['text1'];
echo "????? $str";
$fname = 'write_data001.txt';
echo "????? $fname";
if($str){
echo "????? $str";

$file1 = @fopen($fname,'w') or exit('??????');
flock($file1,LOCK_EX);
fwrite($file1,$str);
flock($file1,LOCK_UN);
fclose($file1);
}

 

?>

<hr />
<a href="write_data001.txt">write_data.txt?????</a><br />
<a href="write001.html">??????</a>

</body>
</html>