I am developing a backend with php here.
I am having problem with such error like this:
Undefined variable : PHP_SELF
on my htdocs directory.
I’m developing with php 5.4.4 , and if you want to look at the source code here it is:
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.
Do not use any of the suggested versions of PHP_SELF. It is a security nightmare, opening up your PHP to a multitude of possible injection attacks.
What are you trying to achieve? Generate the URL for a form sending to itself? Use
action=""for that – it is a valid approach and will always use the URL for sending the form as for loading.If you must know the requested script, use
$_SERVER['SCRIPT_NAME']instead.