[ 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'... 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.
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("[EMAIL PROTECTED]", "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"); ?> -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php