refactoring control handler phpinfo helper