This is a companion article to a JavaScript version of the same tutorial. This article is intended for PHP developers who want to pull WordPress and other blog posts into a non-Wordpress or non-blog web page.
If you are using PHP, I recommend you use this method, as it is cleaner than JavaScript and completed entirely at server-side. see the code.