What does if(false) in php mean?

Today, I decided to download wordpress and the first file that I have come across is wp-admin/install.php. the first thing in the file is this:

// Sanity check.
if ( false ) {
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Error: PHP is not running</title>
<body class="wp-core-ui">
    <p id="logo"><a href="https://wordpress.org/">WordPress</a></p>
    <h1>Error: PHP is not running</h1>
    <p>WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.</p>

Now I am kind of wondering, What is if( false ) ? and how does it mean that the user is not running php on their server?

Read more here: What does if(false) in php mean?

Leave a Reply

Your email address will not be published. Required fields are marked *