sorry for taking so long to reply...been busy...but now that ski season is over I'm un-busy.
After relooking at your post I don't see why I did not catch it first. Globals are off. That means you must use the long form for environmental variables.
This code works on my server
Code:
<?php
//path info and file name
$pinfo = pathinfo($_SERVER['PHP_SELF']);
$domain = $_SERVER['HTTP_HOST'];
$path = $pinfo['dirname'];
$file = $pinfo['basename'];
//output
echo "<p> <p>";
print_r($pinfo);
echo "<p>file name is: $file<br>";
echo "url is: $domain$path/$file";
?>