473,503 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Finding Date File Created

Sorry, I must be blind but I can't seem to find it anywhere.

What function will return the time a file was created? I see
filemtime(...) returns the time that file was last Modified and
fileatime(...) returns the time that a file was last accessed but what
about created? Tried php.net and google, nothing =(

Oct 13 '05 #1
2 13180
>Sorry, I must be blind but I can't seem to find it anywhere.

What do you consider the DEFINITION of "file created" for the purpose
of such a time? In light of such a definition, what does the time
the file was created *MEAN*? I am thinking of such subtle differences
as: (a) a compiler writes over an existing object file, thus *NOT*
changing the create time, vs. (b) a compiler deletes and re-creates
an object file, thus changing the create time. But is there really
a difference between these two cases, since none of the older
contents of the file remains, nor is there any detectable difference
other than the creation time?

If you aren't very careful with the definition of creation time,
the whole thing becomes pretty useless.
What function will return the time a file was created? I see
filemtime(...) returns the time that file was last Modified and
fileatime(...) returns the time that a file was last accessed but what
about created? Tried php.net and google, nothing =(


TRSDOS II tracked a creation time and modification time, but I doubt
anyone cares any more.

FreeBSD actually tracks such a time but only on a UFS2 filesystem with
FreeBSD 5.0 or greater. Most versions of UNIX track accessed time,
modified time, and inode-changed time, not creation time.

Gordon L. Burditt
Oct 13 '05 #2
Robizzle wrote:
Sorry, I must be blind but I can't seem to find it anywhere.

What function will return the time a file was created? I see
filemtime(...) returns the time that file was last Modified and
fileatime(...) returns the time that a file was last accessed but what
about created? Tried php.net and google, nothing =(

From what I've read, Unix does not keep a file creation time.

In Windows filectime will return the creation time.

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*****************************
Oct 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2160
by: Charles A. Lackman | last post by:
Hello I have created a Dataview and have sorted it on the Date and ShiftNumber columns this works great, but when I want to use the Find Method it gives me the following error: Expecting 2...
3
1847
by: Tim | last post by:
Hello Everyone I'd like to create a script/program that can locate all servers running DB2, finding out which instances are running/created and what databases are running under them but have...
9
10539
by: AP | last post by:
Is there anyway to determine what the modified or create date is for a file? In my example I am uploading a text file using the following to select the filename: GetOpenFileName Lib "COMDLG32.DLL"....
6
14385
by: KoRnDragon | last post by:
I know about getlastmod() but is there one for created date? If not is there some other way of getting the created date of a file?
5
1767
by: tcwarrior | last post by:
Hi all. I am trying to write a little program where I extract some data out of a game in real time. The game writes some info to a log file, and I can access this in real time. The problem is that...
4
1895
lucas911
by: lucas911 | last post by:
I'm sure that this is possible: I have a parent directory that has sub directories. Each sub directory will store certain files in certain formats, i.e. i have 1 directory for excel, 1 for...
2
1654
by: webmonkie | last post by:
Hi, I am hoping someone can point me in the right direction as I have been trying to fix this issue for a good while now. I am trying to take information out of a xml file using php and parsing it...
9
2125
by: richee | last post by:
Hi all, I am new to Perl but see that it offers some fantastic opportunities and am trying to use it more in problem solving but could do with a little help on a problem thats driving me nuts.......
3
5154
by: aRTx | last post by:
I have try a couple of time but does not work for me My files everytime are sortet by NAME. I want to Sort my files by Date-desc. Can anyone help me to do it? The Script <? /* ORIGJINALI
0
7342
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6998
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7464
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5018
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3162
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1516
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
741
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
391
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.