Print $node information within blocks

If you want to display details such as the $title of the $node that your block is printed into, you can use: node_load();

Snippet:

<?php
$node
= node_load(arg(1))
print
$node->title;
print
$node_url;
print
$node->nid;
?>