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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -