Resolve php PHP_SELF variable issues.