To state the obvious, these examples will need to be viewed under a server since, being PHP, they will not work on a local file system, but of course you already knew that! ;)
Find information on setup online.
Thank you for visiting dyn-web.com!