$strpath="novosti/db/news.php"; $adrself=getcwd(); for($i=0; $i<100; $i++) { if(file_exists("public_html"))break; if (!file_exists($strpath)) chdir(".."); else break; } include ($strpath); chdir($adrself); ?>