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

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