-
Notifications
You must be signed in to change notification settings - Fork 149
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
changing $path to a user sub-directory isnt working #25
Comments
The dirname is relative to where your php file is located. So if your index.php is in the home folder then you would just need to do this:
|
Got it. 2 last questions. Is there anyway to remove the ability to download (already turned off force_download option), but not even allow "right click - save target as". Alternately, is there anyway to force clicking to open in a new tab as opposed to allowing download (such as for log files that simply need reviewing but not downloading)? |
For the right-clicking you will need to add that yourself with a script: For opening in a new tab, look at like 184: And change it to: |
Is there a way to list a directory content which out of php folder. I have video files on my attached storage and have to list them. |
I have tested multiple ways to list the files in a users sub-directory with no change...
I have tried defining the $path variable at the top of the file and commenting out the included $path definition:
define('path', '/home/bob/backups');
as well as
define('$path', '/home/bob/backups');
I have also tried using the $items definitions as well:
$items = scandir( dirname(FILE) . '/home/bob/backups' );
Still no luck. Any assistance would be greatly appreciated
The text was updated successfully, but these errors were encountered: