m.ike Posted June 24, 2009 Share Posted June 24, 2009 I wanted to make something that would loop through a directory and change all the date created of a bunch of excel files but I could not for the life of me figure out a way to edit the attributes of a file. Is there any possible way to edit file attributes if not then do you guys have any suggestions on what to do? Link to comment https://forums.phpfreaks.com/topic/163473-editing-file-attributes/ Share on other sites More sharing options...
patrickmvi Posted June 24, 2009 Share Posted June 24, 2009 If you're using *nix, you should be able to call PHP's exec function to execute a command line utility called "touch" to modify the file dates. For more info on exec: http://www.php.net/exec For more information on the touch command: http://unixhelp.ed.ac.uk/CGI/man-cgi?touch Link to comment https://forums.phpfreaks.com/topic/163473-editing-file-attributes/#findComment-862593 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.