1

I use LAMP as a web server, why do I get 500 error when I am wrong in just writing php code? Although only a few mistakes. example: <php if($blabla){ echo "superhero"; I just forgot to close it but why direct 500 error? `

1 Answer 1

2

My understanding is HTTP response code 500 is like a generic error code that relates to your HTML page. If you want error codes relating to your PHP code then perhaps best to run your code through a PHP compatible IDE or even from the command line php myapp.php

Not the answer you're looking for? Browse other questions tagged .