google-code-backups / add-mvc-framework

Automatically exported from code.google.com/p/add-mvc-framework
0 stars 0 forks source link

running as CLI should automatically set the content type to text/plain #112

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Steps to reproduce the problem:
Run as CLI

expected output:
Should be readable

actual output:
useless HTML tags all around

Original issue reported on code.google.com by albertdi...@gmail.com on 23 Aug 2013 at 10:27

GoogleCodeExporter commented 8 years ago
Maybe must be done on init.php

Original comment by albertdi...@gmail.com on 20 Jan 2015 at 6:18

GoogleCodeExporter commented 8 years ago
http://stackoverflow.com/questions/173851/what-is-the-canonical-way-to-determine
-commandline-vs-http-execution-of-a-php-s

php_sapi_name()

Original comment by albertdi...@gmail.com on 20 Jan 2015 at 6:19

GoogleCodeExporter commented 8 years ago

Original comment by albertdi...@gmail.com on 20 Jan 2015 at 6:19

GoogleCodeExporter commented 8 years ago
Must be done before any echo and throws

Original comment by albertdi...@gmail.com on 20 Jan 2015 at 6:25

GoogleCodeExporter commented 8 years ago

Original comment by albertdi...@gmail.com on 20 Jan 2015 at 6:45