1
Mantooth
php configuration using htaccess
  • 2006/4/4 19:41

  • Mantooth

  • Friend of XOOPS

  • Posts: 189

  • Since: 2004/11/2


Hello,

My web host has disabled the phpfunction "fsockopen" on my shared server that i need for the paypal IPN in xdonations. my server's php settings

I asked them politely to enable the function but they refused saying "we would have to open it up on the whole server causing a security hole".


I've heard that you can change php's configurations using htaccess.

Is this true? and does anyone know exactly what I'd need to enter in the htaccess to enable this function?

I've been searching around for a couple hours and the closest example i can find is this...

<IfModule mod_php4.c>
php_value include_path ".:/usr/local/lib/php"
php_admin_flag safe_mode on
</IfModule>


If anyone can lend me some advice, it would be much appreciated. I would like to avoid finding another host because I've already pre-paid for the year

Thanks,
Mantooth
...


I hate Mortal Kombat

2
Mantooth
Re: php configuration using htaccess
  • 2006/4/6 16:22

  • Mantooth

  • Friend of XOOPS

  • Posts: 189

  • Since: 2004/11/2


I guess i've hit a dead end
...


I hate Mortal Kombat

3
Dave_L
Re: php configuration using htaccess
  • 2006/4/6 18:02

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


According to the PHP manual, disable_functions can only be set in php.ini. If you run PHP as CGI instead of as an Apache module, you might be able to override that setting by adding your own php.ini file in the script's directory. Otherwise, I doubt if you can change the setting.

php.ini

...
This directive allows you to disable certain functions for security reasons.
It receives a comma-delimited list of function namesThis directive is
; *NOTaffected by whether Safe Mode is turned On or Off.
disable_functions =
...

4
Mantooth
Re: php configuration using htaccess
  • 2006/4/6 18:46

  • Mantooth

  • Friend of XOOPS

  • Posts: 189

  • Since: 2004/11/2


Thanks for the information. now i know that switching hosts is my only option. hopefully, i'll be able to get a refund for the rest of the year.


just a warning to everyone, hostultra and yahoo hosting have a ridiculous amount of php functions disabled.
...


I hate Mortal Kombat

Login

Who's Online

212 user(s) are online (146 user(s) are browsing Support Forums)


Members: 0


Guests: 212


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits