Forum Moderators: coopster
if(ini_set('allow_url_fopen', 'On'))
{
echo "fopen now works";
}
else
{
echo "hmm..function is not working";
}
ive messed around with the syntax a bit and I continue to get the output from the else statement.
The php.ini directives [php.net] page includes a column to the far right with a value. In this instance the directive is allow_url_fopen and the Changeable value is PHP_INI_SYSTEM which, if you scroll down to the bottom of the page, means that the entry can be set in php.ini or httpd.conf only.
Sorry, can't use ini_set() on that particular directive. You may want to turn on error_reporting() [php.net] during development to help you identify these errors.
I tried out using 1 and the other suggested syntax that was posted above, but neither worked.
Also, by the looks of it, your server is configured as such that you aren't going to be able to open remote files via HTTP anyway. You'll need to allow that to happen in your configuration first.