views:

28

answers:

1

I am using maxminds geoip apache mod extention. It requires the php function 'apache_note'. However while suphp is active I am unable to access the function.

Ideally I would like to use suphp as I understand it offers security benefits.

Is it possible to use apache_note while also using suphp?

A: 

PHP's Apache functions are "only available when running PHP as an Apache module," according to the docs. suPHP operates very differently from mod_php, so it's very unlikely that you could get it working.

As you're using MaxMind's GeoIP service, have you looked at their pure-PHP library on PEAR, or the C implementation on PECL?

Charles
What is the advantages/disadvantages between the pear and pecl solutions? Thanks
Pablo
@Pablo, with the PEAR solution, you can just drop the library in to your codebase and access it directly, without needing to install it on the server or change the server configuration. With the PECL package, you'd need to have access to a compiler, and change the server's PHP configuration. They claim that the PECL package operates faster, and may be right.
Charles