0

I want to add allow_url_fopen to my server using .htaccess because I don't have access it to add it directly.So I want to add it using .htaccess I search on google and found some solution that by adding this line to .htaccss it will work so I add it this php_value allow_url_fopen On into my existing .htaccess now complete code it this

RewriteEngine on
RewriteCond $1 !^(index\.php|system|css|functions)
RewriteRule ^(.*)$ index.php?/$1 [L]

php_value allow_url_fopen On

but now I run my website it gives me Internal Server Error can anybody tell me what I am doing wrong.

6
  • try to begin with php_value allow_url_fopen On in .htaccess, you can test it now Commented Jul 29, 2013 at 9:04
  • No It gives me same error. I added this line on top of the code in .htaccess Commented Jul 29, 2013 at 9:06
  • then, it means that your server might not support this type of configuration, what if you remove all rules and just php_value allow_url_fopen On ? and vice-versa? Commented Jul 29, 2013 at 9:07
  • My website is running live so there is no solution for this? Commented Jul 29, 2013 at 9:08
  • Ask your server admin to open it Manuel if that server support this Commented Jul 29, 2013 at 9:11

2 Answers 2

0

What version of PHP are you using , if your version of PHP is <= 4.3.4 then you cannot do it in you can only set it using ini_set , check this out for more information

Sign up to request clarification or add additional context in comments.

Comments

0

you should place the custom php.ini file in every folder where you need the custom PHP settings to apply

add this code to this file:

code:

allow_url_fopen=on

1 Comment

I am working in Codeigniter framework,and I dont think it will run php.ini

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.