Hi, (new to group and a php novice)
I'm editing some files using exapmles for reference.
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).
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"); }
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).
Comment