How to check if allow_url_fopen is enabled or not
Use ini_get()
(docs) to get the value of certain configuration parameters:
if( ini_get('allow_url_fopen') ) {
// lucky me...
}
you can also use this method
phpinfo()
to check various configurations.