How to access command prompt using php?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dinesh1440
    New Member
    • May 2010
    • 16

    How to access command prompt using php?

    I want to execute all the command that I can execute in command prompt or terminal through PHP. exec() and system() work only for some of the commands. I am working in linux. I installed offline Blast program. I can run this program only from command prompt or terminal and for several hundred files I need to do this. So I want to run this dynamically through programming. But I found that blast program does not work either with exec() or with system() but works fine in terminal. Is there a way to have full access to command prompt or terminal

    The command "blastp -query query.fa -subject arabidapsis.fa" worked in terminal. But when given the following command in php it did not.

    exec('blastp -query query.fa -subject arabidapsis.fa' ,$a);
    Last edited by dinesh1440; Mar 23 '11, 02:00 PM. Reason: more information
Working...