I would like to ask if there's something wrong to my webhost or with my code.
I successfully try and test all over my custom php website on my localserver using wamp.
As I upload into my webhost (i used crazydomains) and setup the database usernames, passwords etc.
And when the time I accessed it, it says internal server error.
Have you encounter this already?
Based on your comments you are using password_hash()
and the php version on the server is 5.4. That is going to lead to fatal errors for an undefined function as password_hash()
is available from php 5.5 on.
There is a library to provide forward compatibility for these functions, password_compat.
This will solve your problems where password_hash()
is concerned, but if you run into more problems, you should add error handling and display them to see what is going on. To do that, just add this to the top of your script:
ini_set('display_errors',1);
error_reporting(E_ALL | E_STRICT);