Codex tools: Log in
publish_page is an action triggered whenever a page is published, or if it is edited and the status is changed to publish.
This only gets triggered on pages. For posts you have to use the publish_post action.
WARNING: the publish_page hook seems to never fire on v2.3 and higher. It appears to work as of 2.6. Consider using the 'transition_post_status' hook instead. (See also Post Status Transitions)