In my forms that post back to themselves, I am considering the following alternative to $_SERVER['PHP_SELF']. Does anyone see a security isse with this? I appreciate any thoughts:
basename(dirname(__FILE__))."/".basename(__FILE__);
Alternative to $_SERVER['PHP_SELF']
Moderator: General Moderators
- kaisellgren
- DevNet Resident
- Posts: 1675
- Joined: Sat Jan 07, 2006 5:52 am
- Location: Lahti, Finland.
Re: Alternative to $_SERVER['PHP_SELF']
That is fine if it works for you. Good that you are not using PHP_SELF.
Re: Alternative to $_SERVER['PHP_SELF']
Thanks Kai. You're opinion is valuable.