-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No way to specify what folder for the script to start in? #5
Comments
It should look like this if you want to go down a level:
And up a level:
|
im having same problem. works fine in same folder but not in another. I Tried the suggested: the folder and files from the other directory show up but i get errors: |
root this is my file layout so i used: |
@coolshrimp if your index.php file is in the root, you would want to do: |
Correct way to do that on PHP 7: You can change "2" for your desired folder level. It goes one level up when you increase 1. There will be errors for "filemtime()" and "filesize()" when you change it. Don't know how to fix them. |
Hi just wondering if there is a way to make this script start in a particular folder rather than the root?
I tried changing $items = scandir( dirname(FILE).'./foldername' ); but as a result I get loads of filemtime() errors.
The text was updated successfully, but these errors were encountered: