... I'm also deducting this amount of 0.0001 BTC from the amount my visitors are withdrawing from my site. But during testing, I've tried to withdraw some funds.. 0.0001 was deducted but stood in wallet and it included a small fee of 0.00002260 to the transaction. This means the transaction has no big chance to get in block.
...
Perhaps you can explain in more detail how you are calculating the fees because the part in bold above doesn't sound right. I'm not sure why you are deducting the fees from the withdrawal.
Thanks for answer.
When a user of my website decide to withdraw 0.5 BTC, my PHP script deducts 0.0001 BTC from that amount to cover transaction fee, so the wallet receives command to withdraw only 4.9999 BTC + transaction fee.
Problem is, the transaction fee can get bigger then that, but how can my PHP script know?