开发者

PHP Warning with allow_url_include

I have very strange problem which I can't fix for over a week now. It's about this wa开发者_开发百科rning

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...


allow_url_fopen is a boolean flag.

Per the PHP manual page on changing runtime configuration, 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜