RE: [PHP-WIN] get shell command output

From: Date: Tue, 03 Oct 2000 15:39:21 +0000
Subject: RE: [PHP-WIN] get shell command output
Groups: php.windows 
Request: Send a blank email to php-windows+get-2919@lists.php.net to get a copy of this message
looks like you're missing a ending " echo "<pre>$t</pre>"; --------------------- John Asendorf - jasendorf@lcounty.com Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 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??? > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.windows (#2919) next »