directing the output of exec function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shara
    New Member
    • Dec 2006
    • 28

    #1

    directing the output of exec function

    Hello there,

    I am using a code in which i send a variable to a webpage and want to redirect the output to an array.I am using the following code:
    [code=php]

    exec("http:page address?id =".$rmt_string, $rmt_array);

    [/code]

    Now if iam trying to access the variable "$rmt_array " there's nothing inside the array from which i assume that the above command is not executed.Can somebody help in how to do this.

    Thanks in advance,
    Shara.
    Last edited by shara; Oct 12 '07, 05:51 AM. Reason: to send as php code instead as text
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, Shara.

    exec() is used to execute system commands. You want include() instead.

    Comment

    Working...