RE: [PHP] PHP shell_exec

From: Date: Tue, 27 Feb 2007 13:33:41 +0000
Subject: RE: [PHP] PHP shell_exec
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-249496@lists.php.net to get a copy of this message
ssh2_exec would do it for you... Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -----Original Message----- From: h [mailto:adetemp1@budweiser.com] Sent: Tuesday, February 27, 2007 3:18 PM To: php-general@lists.php.net Subject: [PHP] PHP shell_exec Hi I have been using the shell_exec command to perform several server queries quite succesfully i.e. analysing files systems by gettin ginformation returned by df -kP (shell_exec('df -kP')). do any of you guts know if it is possible to target a command like this on another server? So from server A where I am running a web app, needs to run the shell_exec('df -kP') on server B, which also has php installed, so that i can display the results in my web app on server A. Hope that makes sense! Also, how would i fopen a file such as /proc/cpuinfo on Server B from Server A. Any help greatly appreciated Regards Ade

« previous php.general (#249496) next »