Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > alt.comp.lang.php > #92

Re: PHP code to retrieve the Windows File Explorer DATE column for an MP4 file

From "J.O. Aho" <user@example.net>
Newsgroups alt.comp.lang.php
Subject Re: PHP code to retrieve the Windows File Explorer DATE column for an MP4 file
Date 2022-04-30 11:33 +0200
Message-ID <jd4e2rFn0svU1@mid.individual.net> (permalink)
References <dcb8de40-4713-4680-a3d3-fefa2aec0650n@googlegroups.com>

Show all headers | View raw


On 14/03/2022 19:17, PHPBABY3 wrote:
> How can I retrieve the DATE column in Windows File Explorer for an MP4 file using PHP Version 7.2.34 x64?

PHP will be unaware what is in a column in ms-win file explorer as it 
don't supply an API to fetch data, but on the other hand PHP can fetch 
data directly from the filesystem.

Just fetching last updated date you can use filemtime():
You can check https://www.php.net/manual/en/function.filemtime.php

If you want to fetch more data, then use stat():
https://www.php.net/manual/en/function.stat.php

What you get depends much on the filesystem used and also on mount 
options used, for example atime is many times disabled on Linux 
filesystems to make it more responsive and it's seldom needed.

-- 

  //Aho

Back to alt.comp.lang.php | Previous | NextPrevious in thread | Find similar


Thread

PHP code to retrieve the Windows File Explorer DATE column for an MP4 file PHPBABY3 <shymathguy@gmail.com> - 2022-03-14 11:17 -0700
  Re: PHP code to retrieve the Windows File Explorer DATE column for an MP4 file Uudisteagentuur <he12091983@gmail.com> - 2022-04-27 06:29 -0700
  Re: PHP code to retrieve the Windows File Explorer DATE column for an MP4 file "J.O. Aho" <user@example.net> - 2022-04-30 11:33 +0200

csiph-web