Jump to content

Error: Allowed to open external URLs (red)


Recommended Posts

I know there's a lot of threads talking about this already, but I couldn't find a solution.

Am I correct in thinking to fix this error I should just need the following to be enabled in php.ini?

allow_url_fopen = On



I've enabled that, and the actual function seems to be working... but PrestaShop still doesn't pick it up.

I made a quick test file (assuming this is a sufficient test, but maybe not).

<?php

$handle = fopen("http://www.ben-thomas.org/random.txt", "r");

if($handle){
   echo $handle;
}else{
   echo "hmm, seems to be disabled =(";
}

?>



That outputs:
Resource id #2

Any ideas?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...