communicate programically Dash coin core wallet I have installed dash coin wallet in my amazon server by using instruction from the below url

https://planetcrypton.com/install-dash-daemon

I want to communicate coin wallet via php programme. i just tried the below plugin to connect to the coin wallet from my server. But i coudnt connect to the coin wallet and it says "Empty reply from server0". i added the cofiguration details in the dash.conf file. 

i give corresponding values in below configuration set up 

rpcuser=&lt;some_reallY_long_really_random_username&gt;
rpcpassword=&lt;some_really_long_really_random_password&gt;
alertnotify=echo %s | mail -s "DASH Alert" &lt;your@email-address.com&gt;
server=1
daemon=1
addnode=23.23.186.131
listen=1
logtimestamps=1
maxconnections=256
masternode=0
masternodeaddr=&lt;ip.add.re.ss&gt;:9999
externalip=&lt;ip.add.re.ss&gt;


I only set the master node settings in my server because i dont want to connect the master node from the local system.I need to connect the wallet via programically. Can anyone please help me?
You should add 

rpcport=8666
rpcallowip=0.0.0.0/0


Working config file example: 

rpcuser=username
rpcpassword=strong_pass
rpcallowip=0.0.0.0/0
listen=0
daemon=1
server=1
txindex=1
timestampindex=1
rpcthreads=4
rpcport=8666


and make sure the port is already open from your internet provider side and your system firewall.