php helper to create a "checkRequirement" page for php application