r/PHPhelp • u/AnnoyedButStillHere • Feb 03 '25
PHP help
In my file, everything was working. I would open the folder and it would bring me to the login file. I couldn't go anywhere else without logging in. Then, I changed the name of the index.php to login.php since it was the login file. There is no other file with that shares the name login.php. I also updated the name of it in all of the old files as well, and it won't work. But when I ran a test and changed the names back to what they were before it started to work again. Can anyone help me out with this? I'm new to PHP and my classmates are no help for the upcoming project and I'm doing it alone.
View all comments
Show parent comment
3
u/MateusAzevedo Feb 03 '25
Please, don't contact anyone in private. Describe your issue here so everyone can help and it'll also help other people in the future.
You don't need to explain everything in detail, you just need to show a piece of code that worked before, then the new code with the changes you made. Then explain the behavior you expected and what actually happened.
In the meanwhile, open your browser console (F12), go to the network tab and inspect the request made and what your browser received as response.