in a normal way, php could not run in a html file.
use php...
and use an IF statement with a " sign.
and PHP_SELF gives you the whole filename with the folder names from the user's root.
so lets use the basename function, to get the filename without the dir. name.
<?
if(basename($_SERVER["PHP_SELF"])=="links.php")
print "This is links.php file...";
else
print "This is not links.php file...";
switch case is better then if you had to make a decision
switch(basename($_SERVER["PHP_SELF")])
{
case "index.php":
print "this is index.php";
break;
case "news.php":
print "this is news.php";
break;
}
and another thing... if you use include, to include a file into another php file, and when you print PHP_SELF, you will get the filename where you included the file, not that file where you use the printing...