how to check if allow_url_fopen is enabled or not
<p>I'm using the following code</p>

<pre><code>echo 'file_get_contents : ', ini_get('allow_url_fopen') ? 'Enabled' : 'Disabled';
</code></pre>

<p>this can get it enabled or disabled</p>

<p>but i would like to make as function say function name is <code>_isgetcontents</code></p>

<p>then i can call it as following any where in my website code</p>

<pre><code>if (_isgetcontents()){
echo "this is enabled"; // will do an action
}else{
echo "this is disabled"; // will do another action
}
</code></pre>

<p>~ thanks</p>
