Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 2 of 2

Thread: shell_exec()

  1. #1
    Join Date
    Apr 2005
    Posts
    4,614
    Tokens
    90

    Latest Awards:

    Default shell_exec()

    Right,

    I'm trying to automate a few things I do in shell in PHP. I do this:

    PHP Code:
    <?php
    $output 
    shell_exec("my command");
    echo 
    $output;
    ?>
    It doesnt echo anything, the command is fine because it works when I do it in shell, and PHP isn't in safemode, and shell_exec isnt disabled, cuz castcontrol is installed and works.

    Any help?
    Thanks

  2. #2
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default

    Try:

    PHP Code:
    <?php
    echo(shell_exec("my command"));
    ?>



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •