ok guys, i have a rather tricky question, maybe not for you but for me.
i have develop a php file that first reads the list of files that a directory have, but that is in http, i mean in localhost. this then creates a html file that displays the contents of the directory, similar to what defaults to php when you view a directory, like http://localhost/. what i do is reads only the lines where it starts to show the items, and saves them in my own variable/array. everything works fine, but recently they ask me to go beyond. now my script doesnt work beyond [url]http://,[/url] they ask me to choose a directory using a browse textfield, and then choose a file from a directory, like c:\myfolder\file.txt, and extract only the directory, that means c:\myfolder. i have done that but my script cant produce the same html file it creates when displaying items in http.
generally, my problem is that i need a script that will read and display the contents of a directory, better if it will work on both http and localdrive.
cheers guys, i hope to hear fast from you, im on a deadline.