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 说明。
Put a check in to see if the fopen is successful
if($filehandle) { // do something }
I suspect you will find that the file is not open