<?php if (eregi("Google", $_SERVER[HTTP_USER_AGENT])) { echo "google için yazı"; } else { echo "ziyaretçi için yazı"; } ?>