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 التحديثات عن طريق آر إس إس | البريد الالكتروني Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP: How to get creation tim… الوطن / الترميز / [فب] / [فب] : كيفية الحصول على تيم خلق...

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 من قبل دراكوش في الترميز ، [فب]

PHP 5.3 5.4 6 logo

PHP 5.3 5.4 6 logo [فب] 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. ملاحظة : لاحظ أيضا أنه في بعض النصوص يونكس و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. من أجل حل هذه المسألة ، قد تتمكن من محاولة لتخزين في قاعدة بيانات / الملف في الوقت عندما يتم إنشاء ملف لاستخدامها لاحقا.

Translate this post ترجمة هذه الوظيفة


Related posts: الوظائف ذات الصلة :

  1. Wordpress: Easily Reset Your Account Password Using MySQL and PHP وورد : بسهولة إعادة تعيين كلمة المرور الخاصة بحسابك باستخدام ماي و [فب

    blog comments powered by Disqus بلوق التعليقات مدعوم من ديسقوس]