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 errors.
Can any body give suggestion to fix this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…