今天,我決定下載wordpress,我遇到的第一個文件是wp-admin/install.php。文件中的第一件事情是這樣的:在php中if(false)是什麼意思?
// Sanity check.
if (false) {
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Error: PHP is not running</title>
</head>
<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>
</body>
</html>
<?php
}
現在我有點疑惑,什麼是if(false)
?以及這是如何表示用戶沒有在服務器上運行php?