<?php
$yol=$_SERVER['DOCUMENT_ROOT'];
$yeniyol=explode("htdocs",$yol);
echo $yeniyol[1];
?>