I got this error.
Notice: Undefined variable: session_start in C:\wamp\www\check.php on line 3
It says undefined variable on line 3, but here’s line 3.
$session_start();
Why is this happening? Isn’t session_start predefined?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
session_start()is a function.$session_startwould be a variable if you defined it. The error message you’re reading is simply telling you that the variable that you’re trying to call as a function doesn’t exist as such.