Is there anyway to take control of basename($_SERVER['PHP_SELF']);
?
What i mean is, to make it store into a variable for hmmm display, usage, whatever
Taking Control of basename($_SERVER['PHP_SELF']);
Moderator: General Moderators
- 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:
Sure you can.I mean if you wanted to pass the output of it to a database you can't just say INSERT "basename($_SERVER['PHP_SELF']);" lol
Code: Select all
$sql = "INSERT INTO foo (filename) VALUES ('".basename($_SERVER['PHP_SELF'])."')";- NewfieBilko
- Forum Contributor
- Posts: 189
- Joined: Sun Jun 06, 2004 6:45 pm
- Location: Newfoundland
- Contact:
right, ($_SERVER['PHP_SELF']) is an array variable
and i can just use it in all ways? weiurd, cause i was having some problems pulling the data from it into a template.
$mark= ($_SERVER['PHP_SELF'])
then template {echo $mark}
but i guess what your saying is that since its a global variable i should be able to use it in my template too ($_SERVER['PHP_SELF']) in the templating file ...
and i can just use it in all ways? weiurd, cause i was having some problems pulling the data from it into a template.
$mark= ($_SERVER['PHP_SELF'])
then template {echo $mark}
but i guess what your saying is that since its a global variable i should be able to use it in my template too ($_SERVER['PHP_SELF']) in the templating file ...