can't exec()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • idorjee
    New Member
    • Mar 2007
    • 76

    can't exec()

    Hi,
    When I use the exec() as in the following script on my SunOS, I get the error:

    ld.so.1: php: fatal: libucb.so.1: open failed: No such file or directory
    Killed

    Please help. Thanks a lot in advance.

    Code:
    <?php
    echo exec('whoami');
    ?>
  • harshmaul
    Recognized Expert Contributor
    • Jul 2007
    • 490

    #2
    hi,
    try finding the directory first like this....

    [PHP]<?php
    exec ('/usr/ucb/whoami');
    ?>[/PHP]

    Comment

    Working...