I'm not that familiar with PHP so I could be wrong, but it looks like you're passing strings instead of variables here?:
$bitcoin = new Bitcoin('$rpc_user','$rpc_pass','$rpc_host','$rpc_port');
Instead, it should be like this:
$bitcoin = new Bitcoin($rpc_user,$rpc_pass,$rpc_host,$rpc_port);
Ha thank you OmegaStarScream
That was exactly what it was, I have been sat here for hours staring at it and trying to figure out what is wrong, I knew it would be simple i was just too pissed off to see it.
Again thanks fr the prompt help it was appreciated

TT