PHP: How to get creation time of file with PHP on Linux machines PHP: איך להגיע בזמן יצירת קובץ עם PHP על מכונות לינוקס
Posted on 01. פורסם ב 01. Sep, 2009 by Dragos in Coding , PHP ספטמבר, 2009 על ידי Dragos ב וקידוד, PHP
Unfortunately it is not possible to get the creation time of a file on Linux machines. למרבה הצער לא ניתן לקבל את זמן יצירת קובץ על מכונות לינוקס. None of the functions fileatime , filemtime or filctime will return the file אף אחד הפונקציות fileatime, filemtime או filctime תחזיר את הקובץ
creation time. זמן היצירה.
Note : Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. הערה: שים לב גם כי בחלק טקסטים יוניקס בחירות של קובץ זה מכונה להיות זמן יצירת הקובץ. This is wrong. זה לא בסדר. There is no creation time for Unix files in most Unix filesystems. (from php.net) אין זמן עבור יצירת קבצים יוניקס ברוב filesystems יוניקס. (מתוך php.net)
In order to solve this issue, you could try to store in a database/file the time when a file is created for later use. כדי לפתור בעיה זו, אתה יכול לנסות לאחסן במסד נתונים / קובץ הזמן שבו הקובץ נוצר לשימוש מאוחר יותר.
Related posts: הודעות קשורות:













































