草庐IT

easy_install-HY

全部标签

php - fatal error : Class 'ZMQContext' not found ( but it is installed and works on the terminal )

我想试试ZeroMQ,我写了两个php文件,service.php和client.php。我使用linux终端运行服务php/web/test/service.php,没问题,终端打印“正在等待客户端连接...”。但是,我通过chrome资源管理器请求我的client.php,发生了错误,我检查了我的error.log,有消息“phpfatalerror:class'ZMQContext'notfound.......”我使用命令php-m来检查我的php扩展,zmq已经在该列表中。 最佳答案 问题是ZMQ模块已加载到PHPCLI(

php - 安装了 php71w-gd 并收到错误 GD Library extension not available with this PHP installation

我在centos7服务器和nginx网络服务器上使用laravel网络框架,我安装了php71w-gd,但当我想上传文件时仍然出现此错误Intervention\Image\Exception\NotSupportedExceptionGDLibraryextensionnotavailablewiththisPHPinstallation.你可能需要知道这个#php-i|grepgd/etc/php.d/gd.ini,gdgd.jpeg_ignore_warning=>1=>1 最佳答案 @HamedAbdollahi请检查以下步

php - 无法将用户添加到数据库,不匹配错误? '{"错误信息": ["HY093", 0]}'

我不明白为什么这仍然给我一个PDO错误。我对php比较陌生,所以任何帮助都会很好。$query="INSERTINTOusers(userID,email,password,fName,lName,dob,online,verified,lastLogedIn,gender)VALUES(:id,:email,:pass,:fn,:ln,dob,:online,:verified,:lli,:gender)";$queryParams=array(':id'=>0,':email'=>$_POST['email'],':pass'=>$_POST['password'],':fn'=>

php - 为什么 Assets :install doesn´t copy/Resources/public to/web folder?

我在运行phpapp/consoleasset:install命令时遇到问题。我的操作系统是Windows。我的意图是使用该命令从app/Resources/public复制css、js、图像等文件。运行该命令后,在/web中创建了一个bundles文件夹。但是在创建的bundle文件夹中,没有来自app/Resources/public的任何文件。只有两个文件夹:sensiodistribution和framework。为什么我没有在/web/bundles中获取包含复制资源的AppBundle文件夹? 最佳答案 您的Resour

php - MAC 操作系统 El Capitan 10.11 : Install XDEBUG

我正在寻找调试php脚本的方法。在互联网上,我发现我可以使用MacGDBp+XDebug来做到这一点。当我尝试在Shell中使用PECL安装时:sudopeclinstallxdebugThenexterrorhavebeenoccured:downloadingxdebug-2.4.0.tgz...Startingtodownloadxdebug-2.4.0.tgz(264,832bytes).....................done:264,832bytes76sourcefiles,buildingrunning:phpizegrep:/usr/include/php/m

php - brew install php55-intl 失败,无法安装 Composer

我正在尝试安装npminstall&&grunt,但它告诉我我需要composer。我正在尝试安装Composer,但这取决于php55。我试过brewinstallphp55、php55-intl、php56、php56-intl等我正在阅读此处的说明:https://getcomposer.org/doc/00-intro.md它声明对于Mac我应该简单地使用brew命令:brewupdatebrewtaphomebrew/homebrew-phpbrewtaphomebrew/dupesbrewtaphomebrew/versionsbrewinstallphp55-intl#f

php - 出现错误 mysqli::real_connect(): (HY000/2002): 当我尝试在实时服务器上访问我的项目时没有这样的文件或目录

这个问题在这里已经有了答案:mysqli_real_connect():(HY000/2002):Nosuchfileordirectory(19个回答)关闭3个月前。我已将我的网站上传到服务器,然后我尝试访问,但代码点火器向我返回错误,我找不到任何答案。为什么会这样?我的配置数据库设置如下:$db['default']=array('dsn'=>'','hostname'=>'localhost','username'=>'netservice','password'=>'*********','database'=>'valedastrutas','dbdriver'=>'mysq

php artisan migrate - SQLSTATE [HY000] [1045] 拒绝用户访问 'laravel' @'localhost'

我想按照thiscourse设置和学习Laravel当我尝试使用命令phpartisanmigrate时出现此错误:[Illuminate\Database\QueryException]SQLSTATE[HY000][1045]Accessdeniedforuser'laravel'@'localhost'(usingpassword:NO)(SQL:select*frominformation_schema.tableswheretable_schema=laravelandtable_name=migrations)[PDOException]SQLSTATE[HY000][10

php - 组件安装错误 : JInstaller: :Install: File does not exist

我只是按照这个video创建了一个组件.我创建了名为admin.zip的组件。我在joomla3.0中安装时收到以下警告。WarningJInstaller::Install:FiledoesnotexistC:\wamp\www\Content\tmp\install_52009de34a2c1\site\language\en-GB.com_helloworld.iniJInstaller::Install:FiledoesnotexistC:\wamp\www\Content\tmp\install_52009de34a2c1\admin\language\en-GB.com_h

php - PDOExeption SQLSTATE[HY001] 无法分配足够的内存

当我从php-fpm运行以下代码时:$connect=newPDO("dblib:host=mssql.dev.gm.local;dbname=GeoData","username","password");try{$s=$connect->query('[RU].GetTownInfo4368');var_dump($s->fetch());}catch(Exception$e){var_dump($e->getMessage());}我得到异常:PDOExeptionSQLSTATE[HY001]Unabletoallocatesufficientmemory但是当我从php命令行