Find Absolute Path PHP Template File

This PHP template be used to find the absolute full path of the current website directory


<?php// Display the absolute path of the current file
echo 'Absolute path of the current file: ' . __FILE__;?>

Advertisement

About

A template that finds the absolute server path of a script.

Advertisement