island Posted February 6, 2009 Share Posted February 6, 2009 Hi, I need to run a command in a distant unix server from a windows server using the telnet in php when i run this code : $server = '10.0.0.1'; $port = 23; $fp = fsockopen($server, $port); if(!$fp) { echo = 'connexion NOK'; } fwrite($fp, "user\r\n"); fwrite($fp, "password\r\n"); fwrite($fp, "mkdir toto\r\n"); it return no error message, but when i verify in the server, the directory "toto" is not created ! Can you please help me ? thank you. Link to comment https://forums.phpfreaks.com/topic/144137-php-telnet/ Share on other sites More sharing options...
island Posted February 7, 2009 Author Share Posted February 7, 2009 any idea please ? Link to comment https://forums.phpfreaks.com/topic/144137-php-telnet/#findComment-756777 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.