i guess it's using preg_match...
i am trying to figure out how to write code to pull the folder name out of $_SERVER['PHP_SELF']
this is what i'm trying
$a =$_SERVER['PHP_SELF'];
preg_match("/.*/(.*.php)/",$a,$matches);
echo $matches[1];
and it doesn't seem to be doing it's job... it's saying this :
Warning: Unknown modifier '(' in C:\Apache\Apache2\htdocs\ccLive\admin\index.php on line 4
and i don't know why...
here's a quick examp of what i'm trying to do... say the results are
/cclive/admin/index.php
i'm trying to pull just 'admin' out of it..
anyway, thanks for any help