Can't use apache_ functions

Neither of the following work on my server:


print_r(apache_get_modules());
print_r(apache_get_version());

I just get a blank page. PHP version 5.2.9. What am I doing wrong?

PHP only has access to the these functions when its running as an Apache module. Throw a phpinfo() file and check the Server API. If you don’t see Apache 2.0 Handler you won’t be able to access apache’s list of modules this way.