<?php if (file_exists('/tmp/php-cgi-73.sock')) { echo "Socket found at /tmp/php-cgi-73.sock"; } else { echo "Socket not in /tmp. Keep looking."; } ?>