Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I know I can manually run it through PHP's exec() command but I was hoping if there was a ready to download and deploy PHP-based system that could act as a bridge and terminal and you can run commands on it like you were in the terminal itself.

share|improve this question
    
I did try searching but I always get the reverse, running PHP via command line. What I need is running command line via PHP. Sad for the downvote :( –  radj Feb 10 '13 at 14:50
    
The right terms to search were probably PHP and shell, not command line. Found sourceforge.net/directory/terminals/virtual/language:php/… –  radj Feb 10 '13 at 15:04
    
Why do you want to do this? Why not connect via, say, ssh? –  vonbrand Feb 10 '13 at 15:09
    
Paid web hosting provider disabled SSH and only provides it for the more expensive business plan :( –  radj Feb 10 '13 at 15:29
add comment

2 Answers

Kloxo has a command line interface, you can use it

check ssh.serverdo.in, and serfish, i used those in the past, or you can just google "online ssh client".

PS: I don't think you can find a php script that acts like a terminal, i think you should go for java.

share|improve this answer
    
Unfortunately, I can't run Kloxo, it requires root access. –  radj Feb 10 '13 at 15:39
    
@radj please read my edit –  Fischer Feb 10 '13 at 17:16
    
I found PHPShell phpshell.sourceforge.net –  radj Feb 11 '13 at 10:23
    
@radj sir,you stated that "Paid web hosting provider disabled SSH and only provides it for the more expensive business plan ", may i ask you what –  Fischer Feb 11 '13 at 12:16
    
I'm on iFastNet's premium hosting. The business hosting is on the next tab. –  radj Feb 11 '13 at 12:18
show 2 more comments

Try PHPShell. I tried it and it works great. Although it can't use vim or any program that requires user input in the middle of execution but that's enough for me.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.