phpinfo disabled

Status
Not open for further replies.

hoyer801

New Member
Messages
23
Reaction score
0
Points
0
I get this error from within my wordpress installation when trying to save a page. I recently upgraded to intermediate php and the panel says that the upgrade has taken place. It's been over 12 hours since the upgrade was approved.

Warning: phpinfo() has been disabled for security reasons in /home/hoyer801/public_html/wordpress/wp-includes/functions.php on line 2216

Please advise.
 

hoyer801

New Member
Messages
23
Reaction score
0
Points
0
No problem. Line 2216 is

phpinfo(8);

For greater context, here's what's around it

function apache_mod_loaded($mod, $default = false) {
global $is_apache;

if ( !$is_apache )
return false;

if ( function_exists('apache_get_modules') ) {
$mods = apache_get_modules();
if ( in_array($mod, $mods) )
return true;
} elseif ( function_exists('phpinfo') ) {
ob_start();
phpinfo(8);
$phpinfo = ob_get_clean();
if ( false !== strpos($phpinfo, $mod) )
return true;
}
return $default;
}
 
Status
Not open for further replies.
Top