<? $a = $_SERVER['DOCUMENT_ROOT']; echo $a.'<br>'; if(chmod($a."/pandcar", 0755)) echo 'ok'; else echo 'error'; ?>