Hi, reza_shnia
do you think my codes are correct?
PHP
<?php
$KRPANOTOOLSEXE = __DIR__ . '\\krpanotools64.exe encrypt -h5 ';
$IFILE = __DIR__ . '\\pano.xml ';
$OFILE = __DIR__ . '\\panoe.xml';
exec($KRPANOTOOLSEXE . '-in=' . $IFILE . '-out=' . $OFILE, $output, $return_var);
echo($return_var . '<br>');
echo($KRPANOTOOLSEXE . '-in=' . $IFILE . '-out=' . $OFILE);
?>
Display More
the $return_var=1
but when I use the output codes by php to running in the CMD, that is OK

by the way
I set disable_functions in php.ini like this:
Code
; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names.
; http://php.net/disable-functions
disable_functions =
and the IIS_IUSRS's security right for cmd.exe is "modify"