twintriode
Technical User
Hi All,
Having a bit of a problem with the login section of a site I am working on. As in the title I have the following two scripts.
(htdocs)/test/new/login_man.php
(htdocs)/test/new/myaccount.php
myaccount.php, uses a logincheck that basically says, if user logged in then continue... and include the main file, or redirect to login_man.php.
Accidentaly when testing I typed the URL (htdocs)/test/new/myaccount/login_man.php and suddenly I was in a vicious loop that ate my CPU up, until I quit firefox? Obviously there is some sort of loop going on, but I have never before seen a server accept /test/new/myaccount/login_man.php for example, when there are no further directories in /test/new, ie /test/new/myaccount/anything.php should give a 404, no? As /test/new/myaccount/ does not exist.
I assume this is either a basic scripting error or, a setting in php.ini that I need to change? Can anyone shed any light on this situation?
Also I might add the site is working quite well, accept for this problem, but you have to enter the URL which causes this manually, and it seems to be doing the same to other pages, ie directory-izing them?
Thanks in advance
Having a bit of a problem with the login section of a site I am working on. As in the title I have the following two scripts.
(htdocs)/test/new/login_man.php
(htdocs)/test/new/myaccount.php
myaccount.php, uses a logincheck that basically says, if user logged in then continue... and include the main file, or redirect to login_man.php.
Accidentaly when testing I typed the URL (htdocs)/test/new/myaccount/login_man.php and suddenly I was in a vicious loop that ate my CPU up, until I quit firefox? Obviously there is some sort of loop going on, but I have never before seen a server accept /test/new/myaccount/login_man.php for example, when there are no further directories in /test/new, ie /test/new/myaccount/anything.php should give a 404, no? As /test/new/myaccount/ does not exist.
I assume this is either a basic scripting error or, a setting in php.ini that I need to change? Can anyone shed any light on this situation?
Also I might add the site is working quite well, accept for this problem, but you have to enter the URL which causes this manually, and it seems to be doing the same to other pages, ie directory-izing them?
Thanks in advance