How do i get the URL link from the Address Bar of IE or NS and then extract the page name from the URL
WHAT?!?!?! Please elaborate.
Guessing at what in the world you are trying to do: You want to pass a URL in a query string and then get the <TITLE> of the page at the URL passed. Here is how:
<?php
$title = "Don't know yet";
$url = $_GET['url'];
$lines = file($url);
if ($lines) {
$html = implode("",$lines);
if (eregi("<title>(.+)</title>", $html, $regs)) {
$title = $regs[1];
}
}
print $title;
?>