Php – Include problems in PHP

.htaccessincludephp

I need to turn allow_url_include On. How can I do this? I have access to .htaccess as well as php.ini.

I'm using PHP version 5.2.9

I've tried adding

php_value allow_url_include On

in .htaccess and

allow_url_include = On

in php.ini.

Both files are at the root of my website.

Is there a way to use the curl/get page function as a workaround?

Best Solution

Are you sure you're grabbing the right php.ini file?

If you're on a linux box, you might be grabbing the wrong one. I've seen that happen in the past. If you are indeed using Linux, open the terminal and type

which httpd
which php

Then you'll know if your pointing to the right locations.