How can I turn on allow_url_fopen
in .htaccess
or a PHP file?
# Fix/SolutionOpen 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 .
You can't, it can only be set in php.ini (see the docs), unless you're using a version of PHP <= 4.3.4.
If you're using a really old version of PHP (and you shouldn't be) then you can set it in PHP using ini_set
.
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