Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Toyoharu Nakano
Added: Nov 7, 2019 1:57 AM
Modified: Nov 7, 2019 2:01 AM
Views: 5
Tags: no tags
  1. $crlf = "\n";
  2. $test_txt_msg = "XXXXX";
  3. file_put_contents("test.txt", $crlf.$test_txt_msg.$crlf, FILE_APPEND | LOCK_EX);
  4. //上記をControllerに実装したケースではCodeIgniterのROOTにtest.txtを新規作成(追記)する。
  5. //(例:出退システムならば、aoyagi-web.com/shuttai/直下)