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. Sep, 2009 by in Coding, PHP

PHP 5.3 5.4 6 logo

PHP 5.3 5.4 6 logo

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
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)

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
  2. PHP: Script to extract one’s contacts from email (Gmail, Yahoo,Hotmail,AOL…) and send invites – OpenInviter to go!
  3. Coding:How to fetch user profile data with SSI.php from a SMF forum database
  4. WordPress: Best SEO iTranslator for WordPress, get free traffic from fully automated plugin script

  • Mertyalcin

    Tüm
    dünyadaki okey oyuncuları ile aynı platform içerisinde sohbet ederek canlı okey
    oynamaya hazır olun. http://www.okey-oyna.com sizi eğlenceye ve heyecana davet ediyor. İnternette görüntülü
    olarak okey oyna, gerçek kişilerle tanış, turnuva
    heyecanını yaşa. Dünyanın en büyük internet oyun portalı içerisine kayıt olun
    ve oynamaya hemen başlayın.