Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function FileLog()
- {
- try {
- $fp = fopen(dirname(__DIR__).'/logs/'.date('Y-m').'.csv','a+');
- fputcsv($fp, 'sdfsdfs'); //just a random string to test if file and
- //directory is generated
- fclose($fp);
- }
- catch (Exception $e) {
- echo $e->getMessage();
- }
- }
Add Comment
Please, Sign In to add comment