Hi, i recently upgraded my webserver to php 5.2.6. afterwhich, i receive alot of error like undefine variable and stuff like that.
coding such as this won't work if the session is not define yet
$login = checklogin($_SESSION['loginID']);
if( $login )
include($_SERVER['DOCUMENT_ROOT'].'/sites/havelogin.php');
else
include($_SERVER['DOCUMENT_ROOT'].'/sites/notlogin.tpl');
Please help. TksUse isset or empty to check that such variables exist before using them.Also note that this had nothing to do with the upgrade - the errors were always there, you were simply ignoring them before.
coding such as this won't work if the session is not define yet
$login = checklogin($_SESSION['loginID']);
if( $login )
include($_SERVER['DOCUMENT_ROOT'].'/sites/havelogin.php');
else
include($_SERVER['DOCUMENT_ROOT'].'/sites/notlogin.tpl');
Please help. TksUse isset or empty to check that such variables exist before using them.Also note that this had nothing to do with the upgrade - the errors were always there, you were simply ignoring them before.