gsharma Posted December 9, 2006 Share Posted December 9, 2006 hi everyone, I looked around everywhere but I cant find a good example how to get the creation date of a folder in php. Please advise me if there is a way to do that in php.thanks in advance,Gaurav Link to comment https://forums.phpfreaks.com/topic/30012-folder-information-in-php/ Share on other sites More sharing options...
linuxdream Posted December 9, 2006 Share Posted December 9, 2006 I suppose you could do it the easy way....echo exec('ls -lc $filename'); Not all that elegant, but it works. Link to comment https://forums.phpfreaks.com/topic/30012-folder-information-in-php/#findComment-137968 Share on other sites More sharing options...
gsharma Posted December 9, 2006 Author Share Posted December 9, 2006 Hi there, thanx for the quick reply. Actually this system that Iam working on is required to work on both windows and linux. So I am looking for a way to get this info through php itself. any pointers ? Link to comment https://forums.phpfreaks.com/topic/30012-folder-information-in-php/#findComment-137971 Share on other sites More sharing options...
linuxdream Posted December 9, 2006 Share Posted December 9, 2006 Might take a look at filectime()http://us3.php.net/manual/en/function.filectime.phpI just found it...didn't even know it existed! Also chech the filesystem section of the php documentationhttp://us3.php.net/manual/en/ref.filesystem.php Link to comment https://forums.phpfreaks.com/topic/30012-folder-information-in-php/#findComment-137978 Share on other sites More sharing options...
gsharma Posted December 9, 2006 Author Share Posted December 9, 2006 Hey, thanx that was a good resource that you sent me :) Link to comment https://forums.phpfreaks.com/topic/30012-folder-information-in-php/#findComment-137988 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.