Re: Is there a way to redefine a constant?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Khai wrote:
> STDERR and STDOUT are defined as constants.  Is there a way to redefine
> these constants?

only if you use runkit (which is probably not recommended in production environments):

	http://php.net/runkit

consider that constants are called as such for a reason. you should consider that
it's probably better to define & use a couple of userland vars to point to whatever
it is you want to point to - either that or redirect stdout/stderr in the shell/cmdline that calls
your script instead.

> 
> Thanks
> Khai
> 

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux