Professional Web Applications Themes

How can i run DOS command from browser - PHP Development

from the manual <?php echo '<pre>'; // Outputs all the result of shellcommand "ls", and returns // the last output line into $last_line. Stores the return value // of the shell command in $retval. $last_line = system('ls', $retval); // Printing additional info echo ' </pre> <hr>Last line of the output: '.$last_line.' <hr>Return value: '.$retval; ?> also see passthru pete Imran wrote:  ...

  1. #1

    Default Re: How can i run DOS command from browser

    from the manual

    <?php
    echo '<pre>';

    // Outputs all the result of shellcommand "ls", and returns
    // the last output line into $last_line. Stores the return value
    // of the shell command in $retval.
    $last_line = system('ls', $retval);

    // Printing additional info
    echo '
    </pre>
    <hr>Last line of the output: '.$last_line.'
    <hr>Return value: '.$retval;
    ?>

    also see passthru

    pete


    Imran wrote:
     
    Pete Guest

  2. #2

    Default Re: [PHP] How can i run DOS command from browser

    imran wrote:
     

    Assuming your talking about running a program on the server, take a look
    at exec(). If you're wanting to run something on the user's computer,
    ummm, no.

    --
    ---John Holmes...

    Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

    php|architect: The Magazine for PHP Professionals – www.phparch.com
    John Guest

  3. #3

    Default How can i run DOS command from browser

    Hi,

    Any one know that how can me run a script from command line after receving the input from FORM thru browser....

    thnx


    Imran Guest

Similar Threads

  1. opening multiple browser windows on command
    By Paul Moffitt in forum ASP
    Replies: 1
    Last Post: September 18th, 08:47 PM
  2. Windows Explorer Right Click Command (+ Custom Command Script)
    By lennySydney webforumsuser@macromedia.com in forum Macromedia Fireworks
    Replies: 1
    Last Post: September 6th, 07:59 PM
  3. [PHP] execute command line script from browser
    By Jay Blanchard in forum PHP Development
    Replies: 0
    Last Post: September 2nd, 12:40 PM
  4. execute command line script from browser
    By Rodney Green in forum PHP Development
    Replies: 0
    Last Post: August 30th, 05:02 PM
  5. Replies: 1
    Last Post: August 19th, 02:26 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139