Did you check the "Ajax" part of the how do I FAQ ?
Asking for directions, it might be an interesting start.
Also, w3school for PHP might be of some help.
PHP is a language in its own right, executed on a server.
You don't really display PHP. The PHP might produce some HTML though to display a page in a browser.
What you can do, is get some variables through PHP, and use/display them in C2.
This is shown in the examples of the FAQ.
I hope it gives you a nice direction.