Depends on the machine you are connecting to, but there are a whole raft of them. rexec, rpc, rsh, ssh (I've even invoked perl under php to gain access to perls telnet command, could never get one to work in PHP, seems there is some handshaking missing (will/wont, can/cant, etc)). Secure Shell (ssh) is becoming the preferred method in lots of shops, but if connectivity is behind a firewall, then any of the others should do just fine.
To find out what is available on the destination machine, signon to it and look for the deamon processes (rexecd, rshd, etc [don't know them all]). Note that none of these are PHP functions, you will need to code exec("rsh ...") or something like that to execute the appropriate client (and yes windows versions of these clients are available if your server is a windows platform). BTW, I've never used the SITE command that way with FTP (maybe doesn't mean much), but I have used SITE JES to connect ftp to mainframe reader/writer, and followed it with a get specifying a JCL file on the mainframe to be submitted and spool output to be retrieved as my resulting file. Perhaps this might provide a few clues. hope this helps. Warren Vail -----Original Message----- From: Zhang, Yanning [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 2:48 PM To: [EMAIL PROTECTED] Subject: [PHP] looking for remote execution command is there another command similar to ftp_exec(), but outside ftp? I tried ftp_exec() and it doesn't work ftp_exec($conn, 'ls -al'): ERROR: SITE ls -al is not understood. Thanks. Yanning -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php