Posted by fade2gray on 06/02/07 09:58
Hi, (new to group and a php novice)
I'm editing some files using exapmles for reference.
[code]
(1) // if (!eregi("admin.php", $_SERVER['SCRIPT_NAME'])) { die ("Access
Denied"); }
(2) if ( !defined('ADMIN_FILE') ){ die("Access Denied"); }
[/code]
Why is (1) always TRUE?
Why does (2) do what (1) doesn't?
Should all instances of (1) be replaced with (2)?
Thanks for any advice.
--
fade2gray
(Invalid return address, please reply to newsgroup).
[Back to original message]
|