2

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.

4
  • 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, 2013 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, 2013 at 15:04
  • Why do you want to do this? Why not connect via, say, ssh?
    – vonbrand
    Feb 10, 2013 at 15:09
  • Paid web hosting provider disabled SSH and only provides it for the more expensive business plan :(
    – radj
    Feb 10, 2013 at 15:29

2 Answers 2

3

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.

1

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.

7
  • Unfortunately, I can't run Kloxo, it requires root access.
    – radj
    Feb 10, 2013 at 15:39
  • @radj please read my edit
    – Lynob
    Feb 10, 2013 at 17:16
  • I found PHPShell phpshell.sourceforge.net
    – radj
    Feb 11, 2013 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
    – Lynob
    Feb 11, 2013 at 12:16
  • I'm on iFastNet's premium hosting. The business hosting is on the next tab.
    – radj
    Feb 11, 2013 at 12:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .