In PHP 7.0, predefined variables such as "$REQUEST_METHOD" cannot be accessed
<p>I wrote a php file and want to call on <code>$REQUEST_METHOD</code> (a predefined variable), but I cannot get the result.</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;Pre Vars Demo&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;?php
    echo "提交的方法：" .$REQUEST_METHOD;
    echo "&lt;br&gt;网络协议：".$SERVER_PROTOCOL;
    echo "&lt;br&gt;主机名称".$HTTP_SERVER_VARS['HTTP_HOST'];
?&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p><a href="https://i.stack.imgur.com/hYHB6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hYHB6.png" alt="enter image description here"></a></p>

<p>I checked the <code>php.ini</code> file, but I could not find <code>register_global= On</code>. So I added this into the <code>php.ini</code> file, however, it still does not work. My php version is <code>7.0.8</code>.</p>

<p>How can I solve this problem?</p>