burada snippit olduğu
$thisFile = str_replace('\\', '/', __FILE__);
$docRoot = $_SERVER['DOCUMENT_ROOT'];
$webRoot = str_replace(array($docRoot, 'library/config.php'), '', $thisFile);
$srvRoot = str_replace('library/config.php', '', $thisFile);
i bir dosya olarak test.php içine bu kaydedebilirsiniz eğer. üzerine bocalama im bölüm str_replace $ Webroot değer test.php çıkıp makeing nasıl olduğunu