Skip to content
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

[new function] Only working on current folder and all sub folders #22

Closed
zengXchao opened this issue Oct 4, 2017 · 2 comments
Closed

Comments

@zengXchao
Copy link

Is it possible to set current folder (containing "filemanager.php") as the root path and make this script just working on current and all sub folders ?

@alexantr
Copy link
Owner

alexantr commented Oct 8, 2017

Try

$root_path = __DIR__;
$root_url = trim(dirname($_SERVER['PHP_SELF']), '/');

@zengXchao
Copy link
Author

It's working for me! Thanks!

@alexantr alexantr closed this as completed Nov 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants