The telnet portion that you are trying to do requires a little bit more than linking. I'm not sure of the syntax but you'll have to dig into PHP and see if it has a networking API.
Essentially you will probably need to simulate the telnet session rather than firing up the session using a hyperlink. For example in perl you can do the following to fire up the ftp
use Net::FTP;
my $cur_ftp = Net::FTP->new();
$cur_ftp->login($host, $user, $password) or die ("cannot connect: $host: $!");
$cur_ftp->put($file_to_put);
$cur_ftp->quit();
and then your web page can initiate to execute this process in the background. So based on your example, you can do the following
- write the telnet program in perl or C or Java or if you're on a UNIX system use the r* commands especially rsh. These are very powerful especially if you have an account on the machine.
rsh -l someuser somehost run_this_command.cgi
executes run_this_command.cgi on somehost as long as someuser has privilege to somehost.
- run the page under SSL and password protect it to prevent unauthorized access.
hope that helps
jan-mike _