Re: html_error related to phpinfo() output
| From: | Melvyn Sopacua | Date: | Wed, 30 Oct 2002 11:14:43 +0000 |
| Subject: | Re: html_error related to phpinfo() output | ||
| References: | 1 2 3 4 5 6 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-90315@lists.php.net to get a copy of this message | ||
At 11:48 30-10-2002, Jani Taskinen wrote:
On Wed, 30 Oct 2002, Melvyn Sopacua wrote: 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'.Ok, duh (never used that [int what] by the way). Make that an optional second arg then. With kind regards, Melvyn Sopacua <?php include("not_reflecting_employers_views.txt"); ?>I suggest you go read the manual page for phpinfo().. :)