marhoons Posted July 29, 2007 Share Posted July 29, 2007 hello, I want ask about reading directory I mean if i have some files in directory name: X and I have in 1.zip , u.jpg x ====> name of folder 1.zip, u.jpg =====> are contents How i can identify contents by php code.. I dont ask about existing or how to print it I am asking generally see the e.g: ------ you have in direcory x : - 1.zip - u.jpg ------ Thanks for help Link to comment https://forums.phpfreaks.com/topic/62267-how-i-can-identify-directory-files/ Share on other sites More sharing options...
GingerRobot Posted July 29, 2007 Share Posted July 29, 2007 If you take a look at the documentation for the readdir() and the opendir() functions, there are some examples of how to do this. Link to comment https://forums.phpfreaks.com/topic/62267-how-i-can-identify-directory-files/#findComment-309916 Share on other sites More sharing options...
Daniel0 Posted July 29, 2007 Share Posted July 29, 2007 If you have PHP5, then scandir() is easier. Link to comment https://forums.phpfreaks.com/topic/62267-how-i-can-identify-directory-files/#findComment-309926 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.