require changed to require_once for code cleanliness
naming conventions tweaked slightly
variable name update
decimal points restricted to 2
check function name 'allow_url_open' updated to 'allow_url_fopen'