Question: I have very strange problem which I can't fix for over a week now. It's about this warning

> 
> PHP Warning: Adding option (Name: allow\_url\_include Value: 0) (17, 1) failed!
> in Unknown on line 0
> 
> 
> 

I don't have the allow\_url\_include option set in any of the files or in .htaccess.

On my local version, I don't have such problem

> 
> PHP Version 5.3.1
> 
> 
> 

On production machine I got the above error, and version of PHP there is also 5.3.1.

I try to set the option in different ways, but nothing removes the warning

> 
> php\_flag allow\_url\_include "yes"
> 
> 
> php\_flag allow\_url\_include "1"
> 
> 
> php\_flag allow\_url\_include "no"
> 
> 
> php\_flag allow\_url\_include "0"
> 
> 
> 

And above 4 examples, but without quotes.

Everything works and I don't see any problems, but I have also

> 
> php\_flag log\_errors "yes"
> 
> 
> 

So in combination with that and the warning from above it turns kinda bad, since it fills my log errors file with those warnings when someone open the site and for me it's hard to lookup in the file for other problems.

Any help is appreciated...

Answer: 
`allow_url_fopen` is a boolean flag.

[Per the PHP manual page on changing runtime configuration](http://us2.php.net/manual/en/configuration.changes.php), the expected syntax seems to be:

```
php_flag allow_url_include off

```

*No quotes*. It only takes `on` or `off`, not yes or no or 1 or 0.
The problem was syntax error in main server php.ini