Re: Is there a way to redefine a constant?

From: Date: Fri, 09 Feb 2007 13:48:31 +0000
Subject: Re: Is there a way to redefine a constant?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-248648@lists.php.net to get a copy of this message
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 >

« previous php.general (#248648) next »