Hey all,
I am trying to execute lpr command from PHP script using sell_exec .
If I write like below
$fin = shell_exec( "lpr -Pprinter1 $str");
Its working fine
But in my application user can specify the printer name so , It should store the value of printer name in one variable i.e $pname and then print it like below,
$fin = shell_exec( "lpr -P $pname $str");
But I am not sure whether variable name is working with -Ppname ??
Thanks,