PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi there. Got some serious problems with the following code. I just want to list the filenames and filesizes in the subdirectory "dummy" but get an error on line 2, $open = opendir("dummy"); - what´s the story? Have tried dummy/ - /dummy/ - and all kinds of things...
Thanks, guys. Did some modifications to the script, and now it manages to open the dir, but don´t print the filenames! It gets the right number of files though...
Another thing; the "Parse error on line number X"-message keeps on changeing although I haven´t have made changes to the script! The X changes. Is that common or just me?!
Finally managed to get the code working on my own, but found some new goodies in that last snippet of coda that Volka posted. However, that one also listed the "dummy/.DS_Store - 6148"-file. Also found an old post telling how to sort by date. Wicked.