I have a simple question I can't seem to find a solution for...
I'm building a site in PHP that involves btc donations. What I'm currently thinking is if a user wants to donate, the site will generate a new bitcoin address and tell the user to send donation to that address... but I don't know how to do that, and I can't find any tutorials.
Could someone point me in the direction as to how I can create random/valid BTC addresses using PHP? And once those web addresses are created, how can I tell the bitcoin client for the person receiving the donation to actually be authorized to receive payment?
I'm trying to make this as simple as possible, and I don't want to act as a middleman handling people's donations. I simply want the money to go from A to B.
You'll want your PHP web app to talk to the backend bitcoin client or to bitcoind. Do a google search for JSON-RPC and understand that first. Then read about the JSON-RPC API that bitcoin provides when you run it with -server on the command line or with server=1 in the bitcoin.conf. One of the API calls is "getnewaddress" and will return you a valid bitcoin address that you can show to the person who wants to send you a donation.