PHP: How to get creation time of file with PHP on Linux machines [فب] : كيفية الحصول على الوقت لإنشاء ملف مع بي على لينكس آلات
Posted on 01. نشر يوم 01. Sep, 2009 by Dragos in Coding , PHP سبتمبر ، 2009 من قبل دراكوش في الترميز ، [فب]
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. ملاحظة : لاحظ أيضا أنه في بعض النصوص يونكس وctime من ملف ويشار إلى أنها المرة إنشاء الملف. This is wrong. وهذا خطأ. There is no creation time for Unix files in most Unix filesystems. (from php.net) ليس هناك وقت لإنشاء ملفات يونيكس في ملفات معظم يونكس. (من 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: الوظائف ذات الصلة :




![[فب] الشعار PHP 5.3 5.4 6 logo](http://iwebdevel.com/wp-content/uploads/2009/09/3131799428_962aba66f1.jpg)








































