clearphp() bugfix + chmod