added php sample log code