[thelist] getting page name with PHP

Jay Blanchard jay.blanchard at niicommunications.com
Tue Sep 10 14:41:01 CDT 2002


[snip]
I want to use this variable in my script. So like this psuedocode:

function highlightThing()
{
  var page = somehow get php page name here;
  myItem = getElementById(page);
  highlight that item
}

How do I get that in PHP?
[/snip]

I think it is in $_SERVER['SCRIPT_FILENAME']

HTH!

Jay

*****************************************************
* Texas PHP Developers Conf  Spring 2003            *
* T Bar M Resort & Conference Center                *
* New Braunfels, Texas                              *
* Contact jay.blanchard at niicommunications.com       *
*                                                   *
* Want to present a paper or workshop? Contact now! *
*****************************************************




More information about the thelist mailing list