\"$PHP_SELF\" <----- Need some help with that.
Moderator: General Moderators
-
darkstarskaterboy
- Forum Newbie
- Posts: 5
- Joined: Tue May 31, 2005 12:00 am
- Location: Pa
\"$PHP_SELF\" <----- Need some help with that.
What is this, what does it do, anything that you could tell me would be helpful.
$PHP_SELF is a predefined variable that contains filename of the current running script.
In the addy "http://example.com/example.php", $PHP_SELF would contain "/example.php"
"http://example.com/folder/another.php" => "/folder/another.php"
"http://example.com/again.php#anchor" => "/again.php"
"http://example.com/yetagain.php?var=1" => "/yetagain.php" (I think)
In the addy "http://example.com/example.php", $PHP_SELF would contain "/example.php"
"http://example.com/folder/another.php" => "/folder/another.php"
"http://example.com/again.php#anchor" => "/again.php"
"http://example.com/yetagain.php?var=1" => "/yetagain.php" (I think)
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
-
darkstarskaterboy
- Forum Newbie
- Posts: 5
- Joined: Tue May 31, 2005 12:00 am
- Location: Pa
I dont' know where it is defined though.
I can't find where it is defined,, so i don't know what it is, so it is giving me an error.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
take a look at
take a look over at PHP_SELF
Code: Select all
print_r($_SERVER);