If the .php file is in the same folder that you want to display the files in, the first form will work - $dirname = ".";
What is it doing or not doing?
A function like the opendir($dirname) is pretty basic. If it is not working, there could be a permissions problem with the folder(s) or you have a problem with PHP functioning.
P.S. Use the "." form with a trailing slash - $dirname = "./"; Code that uses this later in the loop needs a trailing slash to form the link.
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???
Last edited by mab; 03-14-06 at 07:21 PM.
|