alexzand Posted June 25, 2010 Share Posted June 25, 2010 i have a page that is giving client a error and cant turn errors off so i have to get rid of it the code for the line reads as define("Crypt_Pass", "$1$5qnOJOnp$l9I4JFRt/a42BRqjrede5."); the page shows Notice: Undefined variable: l9I4JFRt in C:\wamp\nohacking\config\1.php on line 58 I just switched this account to a new server with anew version of php is that theproblem? how do i fix? Link to comment https://forums.phpfreaks.com/topic/205884-notice-undefined-variable-help/ Share on other sites More sharing options...
premiso Posted June 25, 2010 Share Posted June 25, 2010 define("Crypt_Pass", '$1$5qnOJOnp$l9I4JFRt/a42BRqjrede5.'); Should fix it. $ inside of double quotes gets eval'ed. Your other server just didn't report notice errors, this one does. Link to comment https://forums.phpfreaks.com/topic/205884-notice-undefined-variable-help/#findComment-1077358 Share on other sites More sharing options...
alexzand Posted June 25, 2010 Author Share Posted June 25, 2010 but how do i fix? Link to comment https://forums.phpfreaks.com/topic/205884-notice-undefined-variable-help/#findComment-1077362 Share on other sites More sharing options...
premiso Posted June 25, 2010 Share Posted June 25, 2010 You will notice that I switched the double quotes to single quotes. This takes the $ character literally and does not try to evaluate it to a variable. Link to comment https://forums.phpfreaks.com/topic/205884-notice-undefined-variable-help/#findComment-1077364 Share on other sites More sharing options...
alexzand Posted June 25, 2010 Author Share Posted June 25, 2010 oh duh I didnt even notice you changed the quotes!! i will try it thanks Link to comment https://forums.phpfreaks.com/topic/205884-notice-undefined-variable-help/#findComment-1077365 Share on other sites More sharing options...
alexzand Posted June 25, 2010 Author Share Posted June 25, 2010 great that worked for that one the other ones i wonder if maybe are syntax things i get now message Undefined variable in several lines, I have coded the lines like below line1 if ($include_classes != "No"){ line36 if ($mysql_connect != "No"){ line 68 if ($_POST['check_login'] == "Yes"){ all are giving error Undefined variable: Link to comment https://forums.phpfreaks.com/topic/205884-notice-undefined-variable-help/#findComment-1077370 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.