Guest User

Untitled

a guest
Oct 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. private function FileLog()
  2. {
  3. try {
  4. $fp = fopen(dirname(__DIR__).'/logs/'.date('Y-m').'.csv','a+');
  5. fputcsv($fp, 'sdfsdfs'); //just a random string to test if file and
  6. //directory is generated
  7. fclose($fp);
  8. }
  9. catch (Exception $e) {
  10. echo $e->getMessage();
  11. }
  12. }
Add Comment
Please, Sign In to add comment