From 437ebabfd307569f130090a02478700124f1e6be Mon Sep 17 00:00:00 2001 From: abijah Date: Wed, 8 Jul 2009 21:33:52 +0000 Subject: [PATCH] Removed the hardcoded script location, and added some extra debug information git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629@265 97e9348a-65ac-dc4b-aefc-98561f571b83 --- site/app_controller.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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;