Answer the question
In order to leave comments, you need to log in
Checking output redirection in PHP?
How to check if stdout is redirected or not?
The bottom line is, there is a color output. In the console, it is good and colorful, but not in a text file.
If the output is redirected to a file, I want to remove the coloring. How to check where the output goes?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question