How to call wapiti from php ?

messi2010
2014-06-13
2014-06-15
  • messi2010

    messi2010 - 2014-06-13

    Hi,I installed wapiti 2.2.1 in ubuntu.Today,I tried to build an html form which get accessed by php. After that php executes a command.
    $output = shell_exec("python wapiti --help");
    echo $output;

    or
    $output = shell_exec("python /usr/share/wapiti/wapiti.py --help");
    echo $output;

    But nothing return from webpage .I want to know how to call wapiti from php ?

     
  • devloop

    devloop - 2014-06-15

    Hi !

    You should look in the logs of the webserver you are using, there must be some messages about what happens.

    If you are using Apache2 then you should look in /var/log/apache2/error_log (not sure about the path).

     

Log in to post a comment.