Setting up remote bitcoin server control PHP
The Bitcoin wiki is going to a great source for developing your web app. This page describes the process and makes everthing generally less confusing when using PHP.

PHP Developer Intro

You're going to need this library. To start you first connect to your node like so, the following should also print out some basic info about your node.

require_once 'jsonRPCClient.php';

$bitcoin = new jsonRPCClient('http://user:password@127.0.0.1:8332/');

echo "&lt;div&gt;\n";

print_r($bitcoin-&gt;getinfo());
echo "&lt;/div&gt;";


And to do stuff like get a new address:

$sendaddress = $bitcoin-&gt;getnewaddress();


For other commands check out the API reference.