0

I'm trying to run a Perl script using:

$var = null;
system(PATH_PERL . 'script.pl', $var);
var_dump($var);

However, I'm getting this error:

Warning: system() has been disabled for security reasons [...]

The complete list of disabled functions (with ini_get('disable_functions')):

system, system_exec, shell, shell_exec, exec, passthru, escapeshellarg, escapeshellcmd, proc_close, proc_open, ini_alter, popen, show_source, enable _dl, dl

Is there any way to execute a Perl script when these functions are disabled?

4

1 回答 1

1

没有办法通过 shell 执行它们;在 PHP 中执行 shell 命令的所有方法都被禁用。(execpt 在 PHP 中解释 perl(我认为这毫无意义……;那么你也可以直接将 perl 翻译成 php))

于 2013-04-12T10:32:11.460 回答