Re[2]: [PHP-WIN] get shell command output

From: Date: Tue, 03 Oct 2000 15:43:44 +0000
Subject: Re[2]: [PHP-WIN] get shell command output
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-2920@lists.php.net to get a copy of this message
Hi, John, AJ> looks like you're missing a ending " AJ> echo "<pre>$t</pre>"; Ooops, sorry. I miss quotes in letter, not in PHP. AJ> --------------------- AJ> John Asendorf - jasendorf@lcounty.com AJ> Web Applications Developer AJ> http://www.lcounty.com - NEW FEATURES ADDED DAILY! AJ> Licking County, Ohio, USA AJ> 740-349-3631 >> -----Original Message----- >> From: Alexander Alexeev [mailto:tnt@nizhny.ru] >> Sent: Tuesday, October 03, 2000 11:34 AM >> To: php-windows@lists.php.net >> Subject: [PHP-WIN] get shell command output >> >> >> php4/winnt40/apache1.3.9 >> >> I can't get shell command output >> When I try ... >> >> <? >> $t = system("dir"); >> echo "<pre>$t</pre>; >> ?> >> >> ... or ... >> >> <? >> $t = dir; >> echo "<pre>$t</pre>; >> ?> >> >> ... I get empty html. >> but when i try ... >> >> <? >> $t = dir>d:\1.txt; >> echo "<pre>$t</pre>; >> ?> >> >> ... i get d:\1.txt >> How can't I get shell command output???

« previous php.windows (#2920) next »