php - finding the path to a file residing in the wamp www directory -
i have file in project folder wampserver www directory , want create path file in php script. not sure right in accomplishing have seen use of "./", "../" , full root directory of "c:/...." foresee situation use of c: restrict usage of path local machine , therefore want use wamp's root www.
to document root read $_server-superglobal.
echo $_server['document_root'];
Comments
Post a Comment