in reply to Re^3: system command and formatting
in thread system command and formatting

well, that reply is from me.

Replies are listed 'Best First'.
Re^5: system command and formatting
by lakshmananindia (Chaplain) on Feb 27, 2009 at 08:38 UTC
    I assume Over here, $var doesnt work means $var has nothing in it.

    Did you tried printing the $var to a file?

    When you said print $var, it prints the contents to the STDOUT, which is captured by the system function in PHP. So print $var seems not printing anything, but actually it has the output.

    $bar=$ARGV[0]; $lak=system($bar); print $lak; #This will be captured by the system function in the PHP f +ile. open FH,">> llll"; print FH $lak;

    Now the file will also have the output