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
[SOLVED] Another Seemlingly Easy Question-
Moderator: General Moderators
- NewfieBilko
- Forum Contributor
- Posts: 189
- Joined: Sun Jun 06, 2004 6:45 pm
- Location: Newfoundland
- Contact:
try:
Code: Select all
dirname($_SERVER[PHP_SELF]);- NewfieBilko
- Forum Contributor
- Posts: 189
- Joined: Sun Jun 06, 2004 6:45 pm
- Location: Newfoundland
- Contact:
- NewfieBilko
- Forum Contributor
- Posts: 189
- Joined: Sun Jun 06, 2004 6:45 pm
- Location: Newfoundland
- Contact:
- NewfieBilko
- Forum Contributor
- Posts: 189
- Joined: Sun Jun 06, 2004 6:45 pm
- Location: Newfoundland
- Contact:
- NewfieBilko
- Forum Contributor
- Posts: 189
- Joined: Sun Jun 06, 2004 6:45 pm
- Location: Newfoundland
- Contact: