htDig through PHP ( 6 Views )

no kitty!
  1. Hi all

    Someone can help. I want to call Htdig through PHP and show the the full result (score, number pages, etc).

    TIA.

    (Elif, Cambodia)

  2. Quote:

    Originally Posted by juque
    Hi all

    Someone can help. I want to call Htdig through PHP and show the the full result (score, number pages, etc).

    TIA.

    Check out exec() from the php manual.

    string exec ( string command [, array output [, int return_var]])

    You can execute commands and get the results put into an array.

    Example:

    PHP Code:

    <?php
    $htDig
    = '/usr/bin/htdig';
    $digArgs = '-s foo';
    $result = array();

    exec("$htDig $digArgs", $result);

    // Read through all of the result array
    foreach ($result as $line)
    {
        echo
    "$line\n";
    }
    ?>


    (narin, Burkina Faso)

  3. Thank you hogMan: But I can't to show the pages numbers (1 | 2 | 3 etc...)
    ?

    (adem, Greece)



Related Topics ... (or search in 1.720.883 topics !)

help with htdig configuration (1)
htdig-keywords (7)
php output not seen, basic apache/php configuration problem? (yanks first php script) (3)
php anthology vol ii -----> access control 8.php (but in my case randomimage.php) (5)
can i change php.ini with a php script on a php web page? (6)
php intructions not in http://www.php.net/docs.php (3)
php parser causes a 15 second stall in a .php file, even when no php code present? (3)
silly php question - writing php file from php (6)
php anthology: vol. 2 ch. 1 11.php & 12.php (1)




copyright © 2007-2031 Pfodere.COM ( 5 Pfoyihuee Online )

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 
0.9852