PHP 8.5.0 Alpha 1 available for testing

Voting

: max(seven, three)?
(Example: nine)

The Note You're Voting On

albert at removethis dot peschar dot net
16 years ago
jbezorg at gmail proposed the following:

<?php

if($_SERVER['SCRIPT_FILENAME'] == __FILE__ )
header('Location: /');

?>

After sending the `Location:' header PHP _will_ continue parsing, and all code below the header() call will still be executed. So instead use:

<?php

if($_SERVER['SCRIPT_FILENAME'] == __FILE__)
{
header('Location: /');
exit;
}

?>

<< Back to user notes page

To Top