I would like to know how can I subtract only a part of the full path:
I get the full path of the current folder:
$dbc_root = getcwd(); // That will return let's say "/home/USER/public_html/test2"
I want to select only "/public_html/test2"
How can I do it? Thanks!
I think you should check the path related methods:
pathinfo() - Returns information about a file path
dirname() - Returns directory name component of path
basename() - Returns filename component of path
You should be able to find a solution with one of these.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With