@PradeepKr : $_SERVER is available when the script in run under Apache, not in CLI!