Re: show file creation date
| From: | tedd | Date: | Sun, 22 Apr 2007 13:26:21 +0000 |
| Subject: | Re: show file creation date | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-253487@lists.php.net to get a copy of this message | ||
At 7:18 PM +0100 4/21/07, <chris@aquanuke.com> wrote:
Hi sorry not really a php question.. but using it in a php script :) I want to list the date and time a file was created so I want someting like.. Apr 21 18:57 monkey.txt Ive been playing around with the LS options but I dont know what flags I need. Closest I could get was.. ls -g -o -t monkey.txt -rw-r--r-- 1 393 Apr 21 18:57 monkey.txt What flags would I need to get rid of -rw-r--r-- 1 393 ThanksIn html, try this: Last updated <?php echo date("M j, Y",getlastmod());?> Ad the time as you may. tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com