Re: html_error related to phpinfo() output
| From: | Melvyn Sopacua | Date: | Wed, 30 Oct 2002 10:42:51 +0000 |
| Subject: | Re: html_error related to phpinfo() output | ||
| References: | 1 2 3 4 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-90312@lists.php.net to get a copy of this message | ||
[ wasn't online yesterday, so if this is done already, my apologies ]
At 18:48 29-10-2002, Jani Taskinen wrote:
On Tue, 29 Oct 2002, Zeev Suraski wrote: Shouldn't there be different settings? People may very well want html errors off, but still keep the rest of PHP 'web enabled'...Isn't this the easy way: proto void phpinfo([string format])? format defaults to html when sapi != cli. Keeps it simple and allows: [WEB:] mail("root@wrongconfigsr.us", "Not good", phpinfo('text')); [CLI:] phpinfo('html'); to write to a static file, in the webenvironment. No BC issues, nuttin'. With kind regards, Melvyn Sopacua <?php include("not_reflecting_employers_views.txt"); ?>I've asked about this a few times..I guess it was easier to use existing global than add new? :)This doesn't need to be any ini-setting, IMO. Only CLI needs this.