问题描述
现在已经工作了几天,试图找到一种在 XAMPP for windows 上安装 V8Js 的简单方法,但没有成功.
Been working for days now trying to find an easy way to install V8Js on XAMPP for windows, yet with no success.
我已经下载了带有 PHP 7.2.0 VC15 的最新 XAMPP 版本,并按照这篇博文中的说明进行操作 - https://blog.xenokore.com/how-to-install-v8js-for-php-on-windows/ - 但无济于事.我在 phpinfo 中没有看到 V8Js 的提及,当我尝试使用它时,我得到一个错误
I have downloaded the latest XAMPP version with PHP version 7.2.0 VC15, and followed the instructions in this blog post - https://blog.xenokore.com/how-to-install-v8js-for-php-on-windows/ - but to no avail. I don't see a mention to V8Js in the phpinfo, and when I try to use it I get an ERROR
Error: Class 'V8Js' not found in...
我已经从这里下载了 dll 文件 - https://blog.xenokore.com/how-to-install-v8js-for-php-on-windows/ - 并使用了最新的 7.2.1 VC15 x86 ts 版本,但没有成功.
I have downloaded the dll files from here - https://blog.xenokore.com/how-to-install-v8js-for-php-on-windows/ - and used the latest 7.2.1 VC15 x86 ts version with no success.
谁能提供一些帮助?
推荐答案
你需要从这里下载最新的php版本https://www.apachelounge.com/viewtopic.php?t=6359
You need to download lasted php version from here instead https://www.apachelounge.com/viewtopic.php?t=6359
然后将 php_v8js.dll 从 phpext 移动到本地的同一目录中.
Then move a php_v8js.dll from phpext into same directory on your local.
但是 php 根目录中的 5 个文件必须移到您的 apachein 中
But with 5 files additional from root directory of php have to move into your apachein instead
- icui18n.dll
- icuuc.dll
- v8.dll
- v8_libbase.dll
- v8_libplatform.dll
确保将它包含在您的 php.ini 中,方法是添加以下行:
Be sure to have it in your php.ini, by adding the following line:
extension=php_v8js.dll
然后尝试重启apache或者通过命令php -m查看,玩得开心.
Then try to restart apache or check by command php -m, have fun.
这篇关于如何在 XAMPP for Windows 上安装 V8Js for PHP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!



大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)