diff --git a/site/app_controller.php b/site/app_controller.php index 4a5f3a1..0db3285 100644 --- a/site/app_controller.php +++ b/site/app_controller.php @@ -62,8 +62,11 @@ class AppController extends Controller { $this->autoLayout = false; $this->autoRender = false; Configure::write('debug', '0'); - $handle = popen('/website/localhost/public_html/pmgr/build.cmd 2>&1', 'r'); - echo "'$handle'; " . gettype($handle) . "\n"; + $script = $_SERVER['DOCUMENT_ROOT'] . '/pmgr/build.cmd'; + echo "

" . date('r') . "\n"; + echo "

Script: $script" . "\n"; + $handle = popen($script . ' 2>&1', 'r'); + echo "

Handle: $handle; " . gettype($handle) . "\n"; echo "

\n";
     while (($read = fread($handle, 2096))) {
       echo $read;