如何在Laravel 5.4中运行.dll文件 [英] How to run .dll file in laravel 5.4

查看:143
本文介绍了如何在Laravel 5.4中运行.dll文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我们找到在laravel 5.4

我已经使用COM了;也是我控制器的顶部 和

i have used use COM ; top of my controller as well and

使用此类代码生成.dll文件

using this type of code for excute .dll file

$obj = new COM('pathTo.dll'); 
dd($obj);

但不起作用

找不到显示错误的'COM'类

Showing error Class 'COM' not found

请帮助我解决此问题.

Please help me for resolved this problem .

推荐答案

Laravel 5.4 在php 5.6.4上运行.

Laravel 5.4 runs on php 5.6.4.

从php 5.4.5开始,默认情况下,COM扩展名不再位于核心PHP中,因此您必须手动添加.

From php 5.4.5 the COM extension is no longer in core PHP by default, so you will have to add it manually.

您可以将这两行添加到您的php.ini文件中.

You can add these two lines to your php.ini file.

[COM_DOT_NET]
extension=php_com_dotnet.dll

这篇关于如何在Laravel 5.4中运行.dll文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆