Added example to own file from READ ME

Added code from read me to this file to allow it to be run as PHP file