#!/usr/bin/env php foo

bar

* * You may need to change the #! line above, if your system doesn't have `env` * in the normal place. * * Also, if this script can't find your Habari install, try setting * $_ENV['HEVAL_INDEX'] to /path/to/habari/htdocs/index.php * * If you don't know what the #! line is, or how to set $_ENV, you really * shouldn't be using this script. Delete it now. */ $cmd = file_get_contents( 'php://stdin' ); define( 'UNIT_TEST', true ); if (isset($_ENV['HEVAL_INDEX'])) { require $_ENV['HEVAL_INDEX']; } else { require dirname( dirname( __FILE__ ) ) . '/htdocs/index.php'; } ob_start(); eval( $cmd ); $out = ob_get_clean(); if ( substr( $out, -1 ) != "\n" ) { $out .= "\n"; } echo $out;