D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
php53
/
usr
/
share
/
doc
/
pear
/
ConsoleTools
/
docs
/
Filename :
tutorial_example_output_targets.php
back
Copy
<?php require_once 'tutorial_autoload.php'; $output = new ezcConsoleOutput(); $output->formats->error->color = 'red'; $output->formats->error->style = array( 'bold' ); $output->formats->error->target = ezcConsoleOutput::TARGET_STDERR; $output->outputLine( 'Unable to connect to database', 'error' ); ?>