I want to allow allow_url_fopen
on my server . I have asked my host and they said it can be done with a .htaccess
file. Can anyone tell me how to go about this ?
Open the php. ini file and search allow_url_fopen . If you find it then change allow_url_fopen=Off with allow_url_fopen=On . If you have not found the allow_url_fopen then simply add the allow_url_fopen=On .
Try this, but I don't think it will work because you're not supposed to be able to change this
Put this line in an htaccess file in the directory you want the setting to be enabled:
php_value allow_url_fopen On
Note that this setting will only apply to PHP file's in the same directory as the htaccess file.
As an alternative to using url_fopen, try using curl.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With