%s() has been disabled for security reasons

Description

The function mentionned in the message was disabled with the disable_functions directive. It is not possible to use it, nor to redefine it.

Example

<?php

shell_exec('ls -la');

?>

Literal Examples

  • shell_exec() has been disabled for security reasons

Solutions

  • Remove the function from the disable_functions directive.

  • Find another function with a similar feature.

In more recent PHP versions, this error message is now Call to undefined function %s().