Can I get a path like this using PHP ?
c:\\wamp\\www\\mysite\\blabla
from the script running in "mysite" or mysite/blabla
basically I want to find the full file path, not just the one from the server, which in this case is located in www :)
Can I get a path like this using PHP ?
c:\\wamp\\www\\mysite\\blabla
from the script running in "mysite" or mysite/blabla
basically I want to find the full file path, not just the one from the server, which in this case is located in www :)
Really simple!
print $_SERVER['SCRIPT_FILENAME'];