# Time Reporting

**URL:** <https://forum.kirupa.com/t/time-reporting/332371>\
**Category:** programming\
**Created:** [May 12, 2014, 2:07pm UTC](https://forum.kirupa.com/t/time-reporting/332371 "2014-05-12T14:07:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Almonimus](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@Almonimus](https://forum.kirupa.com/u/Almonimus)\
**Post date:** [May 12, 2014, 2:07pm UTC](https://forum.kirupa.com/t/time-reporting/332371/1 "2014-05-12T14:07:03Z")

</div>

Hello I want to make a PHP which reports the date and time when it was accessed.

```php

//enterance$fh = fopen('./data.dat', 'w');$str = date("m.d.y, H:i")fwrite($fh, $str);fclose($fh);

```

For some reason it doesn’t work, can anyone help me?
