Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo dirname("html/mainfolder/folder1/folder2/file.ph", 2) will do the trick
- $directories = glob($somePath . '/*' , GLOB_ONLYDIR);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement