Reply to Re: PHP - Telnet and issue commands

Your name:

Reply:


Posted by iuz on 06/03/05 02:54

TomT wrote:

> I want to issue a reboot comand to a linux PC, using a PHP Page.
>
> Ideally I'd like to have a 'text box' for the IP address, $IPADDRESS,
> with a 'reboot' button.
>
> So the user enters the IP, eg: 10.0.0.1
>
> The from within the php page we telnet to the $IPADDRESS, providing
> providing the correct username and password:
>
> telnet $IPADDRESS username password
>
> once connect we need to pass the reboot command..
>
> Can all this be done on a linux PC, from a web page ?

if the linux system allow you to login and use the shutdown's command..
yes..

use|read http://php.net/fsockopen for infos

>
> Security is not an issue, we wnat the pc to be able to do this !
>
> Thanks

--
www.iuz-lab.info

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация