Hello All... Im absolutely new to php - this may sound ridiculous and if so - just tell me- I have the below code in a config file.
if (getenv('REMOTE_ADDR')!='0.0.0.0')
{
ini_set('session.cookie_domain','.domain.com');
define("COOKIE_DOMAIN_NAME",".domain.com");
}
else
define("COOKIE_DOMAIN_NAME","");
define("COOKIE_LIFETIME_SECONDS", 60*60);
define("PAID_PICKS_ENABLED", "false");
define("MYSQL_ERRORS", true);
is it possible to remove the "if" statements - for example would it still work like so?
{
ini_set('session.cookie_domain','.domain.com');
define("COOKIE_DOMAIN_NAME",".domain.com");
}
else
define("COOKIE_DOMAIN_NAME","");
define("COOKIE_LIFETIME_SECONDS", 60*60);
define("PAID_PICKS_ENABLED", "false");
define("MYSQL_ERRORS", true);