我的PHP类中有以下命令:
@exec('nslookup -type=' . $type . ' ' . escapeshellcmd($host), $output);
由于安全限制(exec并且escapeshellcmd从php.ini禁用),这不会在我的服务器上运行.有没有不依赖的替代方案exec?
exec
escapeshellcmd
php shell
php ×1
shell ×1