PHP SNW sample