Hi,
Is it possible to change text color in php when making it run as shell script?
thanks in advance
Printable View
Hi,
Is it possible to change text color in php when making it run as shell script?
thanks in advance
like what do you have in mind?
hi,
i'm using php to fetch some webpages, and i'd like to send messages in red, when an error occurs, and green when it works fine.
Another doubt is:
everytime i try to fetch some webpages, it ends with a timeout error when fetching. Is it configurable? set_socket_timeout didn't work (isn't part of my installed build).
thanks in advance
how would you know it worked? or for that matter failed (without looking at the screen)
and
how big are the pages you are fetching? that is the only cause I know that would bring up a timeout
Hi,
the timeout problem has been solved, changinc php.ini
there's some error trapping routines, just want to make some color changing... how would i do to use ANSI Color codes in php?
tia
You can change the font color through HTML tags. For example <font color=#ff0000>This is red</font>
and
<font color=#00ff00>This is green</font>.
BTW, do you listen to Cidade, Sao Paulo? I used to but now I listen to Cidade, Rio de Jeneiro. Both are great.
cudabean
lets see one of those error trapping routines?Quote:
Originally posted by dosgrave2000
Hi,
the timeout problem has been solved, changinc php.ini
there's some error trapping routines, just want to make some color changing... how would i do to use ANSI Color codes in php?
tia