Print monitoring in php