I am trying use a regular expression to determine which menus get displayed.
eregi("^/([a-z0-1_/~]+)/.*$", $REQUEST_URI, parsedRequest);
$menu = $parsedRequest[1];
How do I changes this to obtain "admin" from the url below
This is the $REQUEST_URI
as per looking at my phpinfo()
/~mao2222/php/admin/default.php
Thanks!
MAO
eregi("^/([a-z0-1_/~]+)/.*$", $REQUEST_URI, parsedRequest);
$menu = $parsedRequest[1];
How do I changes this to obtain "admin" from the url below
This is the $REQUEST_URI
as per looking at my phpinfo()
/~mao2222/php/admin/default.php
Thanks!
MAO