简体   繁体   English

禁用system()时运行perl

[英]Run perl when system() is disabled

I'm trying to run a Perl script using: 我正在尝试使用以下命令运行Perl脚本:

$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') ): 禁用功能的完整列表(使用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? 禁用这些功能后,有什么方法可以执行Perl脚本?

There is no way to execute them by shell; 没有办法通过shell执行它们。 all ways to execute shell commands in PHP are disabled. 禁用了在PHP中执行Shell命令的所有方法。 (execpt interpreting perl in PHP (what makes no sense I think...; then you also can directly translate perl to php)) (用execpt用PHP解释perl(我认为这没有什么意义;然后您也可以直接将perl转换为php))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM