Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこれを解決しようとしてきました:
if(isset($_POST['server'])): $block = $_POST['ip']; $file_handle = fopen($file, "a+"); $content = "\n" . $block; fwrite($file_handle, $content); fclose($file_handle); endif;
ファイルに書き込まないだけです。$file が記載されています。
チェックインして、fopen が成功するかどうかを確認します
if($filehandle) { // do something }
ファイルが開いていないことがわかると思います