I have a following code in script.php:
<?php
echo "\e[0;36m Be happy ;)\e[0m";
?>
It is run like this:
~$ php script.php
On my linux mint desktop the output is colorized but on the remote server machine it is not, but when I use bash there:
~$ echo -e "\e[0;36m Be happy ;)\e[0m";
I have colorized output... I have no idea what could be wrong.
Please help.
echo "\033[0;36m Be happy ;)\033[0m";here, for some reason\ewill not work, unless I pipe it troughecho -e. I'm sure it's a configuration somewhere...