How to Send 500 Internal Server Error Error from a PHP Script

How to send 500 Internal Server Error error from a PHP script

header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, 500);

Internal server error 500 when calling php script

You need to add a closing semicolon on the line:

mail($to, $subject, $body, $from)

It should be

mail($to, $subject, $body, $from);

PHP script throwing internal server error 500, fixed when turning on display_errors

It appears that the code generated a parse error inside an eval() function in a loop. This kind of error does not break code execution but does produce a 500 error

500 Internal server error when I try to run my php script

PHP Parse error: syntax error, unexpected ')' in test.php on line 134

You have an extra ) on this line

$average_rank = intval(($highrank + $lowrank) / 2));

Should be

$average_rank = intval(($highrank + $lowrank) / 2);


Related Topics



Leave a reply



Submit