some various tweaks

some various tweaks to the PHP sample