How do I find out whether I have PHP installed on my server or not?

Also, my system admin gave me a port number when he installed mySQL for me. What is the port number for?

And lastly, does anyone have any good PHP books to recommend?