PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hey everyone, sorry for all of the newb questions. I've been trying to create a simple login script and I can't seem to get it to work. Here is the code for login.php. Its not finalized, but I'm just trying to get it working so I can go from there. When the form is submitted, login.php is just a blank white screen so there must be a parse error of some sort.
Are you developing/testing locally or are you testing on a hosted server? I only ask because you might want to set up a server on your personal computer so you can create what is essentially your development environment. You can change your php.ini settings so that display_errors is on to help identify the areas in your code that might have problems. Then test on your personal compute before pushing your work to your live (or production) hosted server.
Everah wrote:Are you developing/testing locally or are you testing on a hosted server? I only ask because you might want to set up a server on your personal computer so you can create what is essentially your development environment. You can change your php.ini settings so that display_errors is on to help identify the areas in your code that might have problems. Then test on your personal compute before pushing your work to your live (or production) hosted server.
I'm testing on my hosted server. I have control over the php.ini settings and I just set display_errors to on and discovered the problem. I think I will set up a server on my computer for testing, thanks for the advice.
I have read up on this and plan to implement it. I just like to start simple to make sure something is working before I add security measures. I'm new to this so I get a bit overwhelmed when staring at line after line of code . I usually wind up looking something like this :