Running cli editor from php

I'm trying to run vim from the command line to edit database records using php.

However, both passthru() and system() both seem to not assign STDIN of the process to my console. Is it possible to do this? STDERR seems fine, as I do get a "Vim: Warning: Output is not to a terminal".


2 Responses to Running cli editor from php

  1. 448 Noch 2007-05-12 10:02 pm

    system("vim > `tty`");

  2. 449 Evert 2007-05-12 11:47 pm

    Thanks man! That did the trick :)

Leave a Reply



About

My name is Evert, and I've been writing semi-regularly on this blog since 2006.

I'm currently available for contract work.

more info.

Subscribe

Dropbox

Dropbox is a simple cross-platform online backup and sync application. The first 2GB of space is free, and both you and me get an extra 250MB extra space if you sign up through this link.