I am shared, how to enable allow_url_fopen

In past hosting (shared hosting too) i can use own php.ini to enable allow_url_fopen=on

and now i had move to dreamhost, is there any way i can enable it to in dreamhost?

i read here we can disable or enable it with htaccess


I’m unaware of being able to enable that feature with .htaccess on DreamHost, but you can try setting up a Custom PHP.ini file, as per the wiki instructions :wink:

Chips N Cheese - Custom PHP installs and the like!

It would be better to rewrite your scripts to make use of cURL.

si-blog | Keystone Websites
Save $97 on yearly plans with promo code [color=#CC0000]SCJESSEY97[/color]

allow_url_fopen is dangerous! Try to not use it! Go with what scjessey said and rewrite the scripts to use curl, if possible. I used http://wiki.dreamhost.com/CURL as a starting point for that.

Promo-Code: [color=#CC0000] SAVEMONEY97 [/color] - Save [color=#CC0000]$97[/color] on your first year of hosting.

You can also compile and install your own PHP. See the wiki article: http://wiki.dreamhost.com/Installing_PHP5

Not everyone is a programmer, so most people can’t recode to cUrl. And many people that sells scripts won’t do that also. I knew that through experience… they will tell you to change webhoster.

Dreamhost $97 promo code

[color=#CC0000]97promo[/color] will give you $97 off
[color=#CC0000]90promo[/color] will give $7 to Unicef

In which case, it’s usually best to stop using their program and find an alternative :stuck_out_tongue:

Chips N Cheese - Custom PHP installs and the like!