Re: [PHP] Is there a way to redefine a constant?

2007-02-09 Thread Jochem Maas
please keep the replies 'on list' ... Khai Doan wrote: > Sorry, I hit the Send button by mistake. My problem is that these > constant are defined at compile / startup time, before my script get to > run. In Perl, I can close STDERR and STDOUT and re-open them to any > file at anytime. In Perl,

Re: [PHP] Is there a way to redefine a constant?

2007-02-09 Thread Jochem Maas
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 consi

Re: [PHP] Is there a way to redefine a constant?

2007-02-08 Thread Chris
Khai wrote: STDERR and STDOUT are defined as constants. Is there a way to redefine these constants? Nope. Once they're set, they're set. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

[PHP] Is there a way to redefine a constant?

2007-02-08 Thread Khai
STDERR and STDOUT are defined as constants. Is there a way to redefine these constants? Thanks Khai -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php