i installed a bitcoind core and i access bitcoin-cli command in linux terminal with developer command(getbalance, getaccountaddress etc.) but i want run this command in php file.
my php code is:
chdir('/home/itr/Downloads/bitcoin/bin');
$output = shell_exec("./bitcoin-cli getbalance");
echo var_dump($output);
bitcoin-cli file path:
/home/itr/Downloads/bitcoin/bin
please tell me what i do?