Before going any further, do this simple test:
1) Create a new text file named "phpinfo.php"
2) Type exactly this into that file and save it:
Code:
<?php
echo phpinfo();
?>
3) Upload that file to the root of your web server (i.e. /var/www/html/) using ASCII mode (not binary mode)
4) Go to your website and use the file's URL (i.e. http: //www.yoursite.com/phpinfo.php) to view the output of the test file.
You should see all of the options PHP was installed with, and other info, too.
Can't see any output?
1) Check to make sure you typed in
exactly what I wrote above.
2) Check the "file permissions" on the file you uploaded. The permissions MUST allow the web server identity to "read" the file. Typically, permissions on a web page are 644 (or rw-r--r--).
Still can't see any output?
1) Your PHP isn't running for some reason.
2) You are not uploading/accessing the test page correctly. Check where the file is located and the URL you are using to access it.
If you have access to your server's log files, check the error log for your site after each attempt to access the test page. In a default setup, you should see PHP errors listed in the log file that you will use to troubleshoot what is going on. (I am referring to your script troubleshooting, because there ARE no errors that will be in there as a result of the test page.)
If you CAN see the test page's output but you CAN'T see your script's output:
1) Reupload the script file in ASCII mode (not binary mode)
2) Check the permissions on the script page (should be 644 or rw-r--r--)
3) Check the URL you are using to access the script page
Other than those simple items, there might easily be an error in the script you are using that breaks the PHP during compilation and results in an "empty" page display. Possibilities include such diminuitive things as capitalization, punctuation and spelling.
(
Here's a quick PHP tutorial, because you clearly need one.

No shame ... just learn the basics.)
If you are still having trouble, you will need to give us a URL where we can see the result and/or some of the code or the name of the public script you are trying to use so we can see if there are any errors in it.