Fixing $PHP_SELF, replace to $_SERVER['PHP_SELF']