PHP Get only a part of the full path

Posted by Adrian on Stack Overflow See other posts from Stack Overflow or by Adrian
Published on 2010-03-11T19:29:12Z Indexed on 2010/03/11 19:34 UTC
Read the original article Hit count: 234

Filed under:
|
|
|

Hello,

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!

© Stack Overflow or respective owner

Related posts about php

Related posts about select