![]() |
|
|
+ Search |
![]()
|
Mar 26th, 2001 21:47
Ben Udall, Peter van Beelen,
You can usually find the filename in the variable $PHP_SELF. From
there, a regular expression can be used to grab to everything before
the file extension.
$category = ereg_replace("\\.[^.]+$", "", $PHP_SELF);