cvs: pear /System_Command/docs test.php
| From: | Daniel Allen | Date: | Sat, 25 May 2002 11:31:39 +0000 |
| Subject: | cvs: pear /System_Command/docs test.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4081@lists.php.net to get a copy of this message | ||
dallen Sat May 25 07:31:39 2002 EDT
Added files:
/pear/System_Command/docs test.php
Log:
Initial release
Index: pear/System_Command/docs/test.php
+++ pear/System_Command/docs/test.php
<?php
require_once '../Command.php';
$cmd = new System_Command();
$xml = '<?xml version="1.0"?>
<doc>
<test val="foo"/>
</doc>';
$cmd->pushCommand('echo', $xml);
$cmd->pushOperator('|');
$cmd->pushCommand('xmllint', '--format', '-');
if (System_Command::isError($result = $cmd->execute())) {
echo $result->getMessage() . ' ' . $result->getDebugInfo();
}
else {
echo $result;
}
?>