Modifying status() method to echo text based on php_sapi_name