I want to get the project name 'video' which is in www folder.I have created a file in a folder structure video/profiles/commons/module/modulename/test.php
in my test.php I have the base path $basepath=__DIR__;
which returns file:///C:/wamp64/www/video/profiles/commons/modules/modulename/
.I want to get only the project name 'video'