PHP Script to edit SSH files?

Discussion in 'PHP' started by Hipto, Jun 19, 2009.

  1. #1
    Hi is there a way to edit files in ssh? There's a variable from a new module that I need to edit regularly and logging in and out through editor is troublesome :/
     
    Hipto, Jun 19, 2009 IP
  2. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    #2
    What do you mean? Like open a PHP file and edit it? If so, there are a number of text editors that should be available on most linux distributions. Most notably are Vim, Emacs, and Pico (in no specific order, though I prefer Vim :p). To open a file to edit just type

    
    vim yourfile.php
    
    Code (markup):
    or whatever editor you decide to use.
     
    Louis11, Jun 19, 2009 IP
  3. stOK

    stOK Active Member

    Messages:
    114
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #3
    I got it like the starter needs a script that connects to a host via ssh and edits files on it.
     
    stOK, Jun 20, 2009 IP
  4. Sudoku-Master

    Sudoku-Master Peon

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Sudoku-Master, Jun 20, 2009 IP