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 Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.