PHP Get current files directory

suernenerma

New Member
I am wondering if it is possible to get the full path to a file it's echoed from then maybe split it So like:echo $currentDir//output EX: /home/user/public_html/scrips/code/test/hathen split it 3 directory's down so the output is: /home/user/public_html/scriptsIs this possible?
 
Back
Top