Drupal path alias from nid

<?php
// get the alias for any node:
$path = drupal_get_path_alias("node/".$nid);
// or get the alias for current page
$path = drupal_get_path_alias();
 
// get the full path
$full_path = $GLOBALS['base_url'] . $GLOBALS['base_path'] . $path;
?>

Article Type

General