PHP noob question
PHP noob question
Out of context: Reply #4
- Started
- Last post
- 5 Responses
- bcoden0
Ok it is pretty easy all you need to do is parse out the url with $_SERVER['PHP_SELF'] and then use the splt command to get the page name eg.
function PageName($page)
{
$PageName = split(".",$page)return $PageName;
}then
$PageName = PageName($_SERVER['PHP_SELF'])
try that out I hav not tested it so you mat need to do soem debugging but try that. you can alos msn me at