Cron Job $_SERVER issue

I want to run a cron job. My application is developed in PHP and Mysql. In browser if i use $_SERVER[HTTP_HOST] in coding, it works fine. But if I use the same thing in cron job it is giving error...