This is a translated page. The original can be found here: http://iwebdevel.com/2009/09/01/php-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime/
UPDATES VIA RSS | Email עדכונים דרך RSS | אימייל Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP: How to get creation tim… דף הבית / Coding / PHP / PHP: איך להגיע טים הבריאה ...

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

PHP 5.3 5.4 6 logo

PHP 5.3 5.4 6 logo PHP 5.3 5.4 6 לוגו

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. כדי לפתור בעיה זו, אתה יכול לנסות לאחסן במסד נתונים / קובץ הזמן שבו הקובץ נוצר לשימוש מאוחר יותר.

Translate this post תרגם פירסום


Related posts: הודעות קשורות:

  1. Wordpress: Easily Reset Your Account Password Using MySQL and PHP וורדפרס: בקלות איפוס סיסמת חשבון שלך באמצעות MySQL ו-PHP

    blog comments powered by Disqus תגובות לבלוג powered by Disqus