How to install V8Js for PHP on XAMPP for Windows?(如何在 XAMPP for Windows 上安装 V8Js for PHP?)
问题描述
现在已经工作了几天,试图找到一种在 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 XAMPP for Windows 上安装 V8Js for PHP?
基础教程推荐
- 在PHP中根据W3C规范Unicode 2022-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- 如何替换eregi() 2022-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
