Re: [PHP-DEV] html_error related to phpinfo() output

2002-10-30 Thread Melvyn Sopacua
[ 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




Re: [PHP-DEV] html_error related to phpinfo() output

2002-10-30 Thread Jani Taskinen
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([EMAIL PROTECTED], Not good, phpinfo('text'));
[CLI:] phpinfo('html'); to write to a static file, in the webenvironment.

No BC issues, nuttin'.

I suggest you go read the manual page for phpinfo().. :)

--Jani



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] html_error related to phpinfo() output

2002-10-30 Thread Melvyn Sopacua
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([EMAIL PROTECTED], Not good, phpinfo('text'));
[CLI:] phpinfo('html'); to write to a static file, in the webenvironment.

No BC issues, nuttin'.

I suggest you go read the manual page for phpinfo().. :)


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); ?


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] html_error related to phpinfo() output

2002-10-29 Thread Steve Alberty

Hi,

why result the functions phpinfo() and phpcredits() as plain text
when i set the html_error = Off.

I think this is not the correct behavior, or not?

Regards,


Steve

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] html_error related to phpinfo() output

2002-10-29 Thread Derick Rethans
On Tue, 29 Oct 2002, Steve Alberty wrote:

 why result the functions phpinfo() and phpcredits() as plain text
 when i set the html_error = Off.
 
 I think this is not the correct behavior, or not?

It is the correct behavior.

Derick

--

---
 Derick Rethans   http://derickrethans.nl/ 
 JDI Media Solutions
--[ if you hold a unix shell to your ear, do you hear the c? ]-


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] html_error related to phpinfo() output

2002-10-29 Thread Zeev Suraski
Shouldn't there be different settings?  People may very well want html 
errors off, but still keep the rest of PHP 'web enabled'...

At 08:58 29/10/2002, Derick Rethans wrote:
On Tue, 29 Oct 2002, Steve Alberty wrote:

 why result the functions phpinfo() and phpcredits() as plain text
 when i set the html_error = Off.

 I think this is not the correct behavior, or not?

It is the correct behavior.

Derick

--

---
 Derick Rethans   http://derickrethans.nl/
 JDI Media Solutions
--[ if you hold a unix shell to your ear, do you hear the c? ]-


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] html_error related to phpinfo() output

2002-10-29 Thread Derick Rethans
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 was just stating that it was meant like this, if it should be like 
this is another question :)

Derick

-- 

---
 Derick Rethans   http://derickrethans.nl/ 
 JDI Media Solutions
--[ if you hold a unix shell to your ear, do you hear the c? ]-


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] html_error related to phpinfo() output

2002-10-29 Thread Jani Taskinen
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.

--Jani


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] html_error related to phpinfo() output

2002-10-29 Thread Derick Rethans
On Tue, 29 Oct 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.

+1 on that.

Derick

-- 

---
 Derick Rethans   http://derickrethans.nl/ 
 JDI Media Solutions
--[ if you hold a unix shell to your ear, do you hear the c? ]-


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php