Another Seemlingly Easy Question-
Posted: Wed Jul 28, 2004 8:52 am
Hey guys, one more thing for today.
I want to use
($_SERVER
to find the Directory
i use
($_SERVER['PHP_SELF']);
and i get admin/frmAdmin.php
I use basename($_SERVER['PHP_SELF']);
and i get /frmAdmin.php.
How can I just get:
admin
THX
I want to use
($_SERVER
to find the Directory
i use
($_SERVER['PHP_SELF']);
and i get admin/frmAdmin.php
I use basename($_SERVER['PHP_SELF']);
and i get /frmAdmin.php.
How can I just get:
admin
THX