|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Need Help .... WHich one is more Secure ?
$_SERVER['SCRIPT_NAME'] Or $_SERVER['PHP_SELF'] ???
Thanks A lot -= php newbiee =- |
|
#2
|
|||
|
|||
|
Don't think either is more secure, as far as i'm aware they do the same thing.
I'd use PHP_SELF, because its shorter(!)
__________________
http://www.phptutorials.cjb.net. go on, give it a click! |
|
#3
|
||||
|
||||
|
I always thought the difference was that SCRIPT_NAME gave simply the filename... and PHP_SELF gave the full absolute path... but after testing now, they both indeed do give the same thing...
I typically use PHP_SELF... It's more of an issue of preference then security. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > Need Help .... WHich one is more Secure ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|