kai5263499 / mandrill-php

PHP library to interface with MailChimp's Mandrill API
MIT License
77 stars 41 forks source link

Trying to use php_sapi_name() to detect the CLI environment #1

Closed alexey-detr closed 12 years ago

alexey-detr commented 12 years ago

Hi, I've experienced that not every server has $_SERVER['HTTP_USER_AGENT'] So I want to suggest you to use the php_sapi_name() function to detect the CLI environment.

kai5263499 commented 12 years ago

Thanks!