我在PHP环境中使用了一些PECL安装的扩展.我正在使用Eclipse进行开发,对这些扩展使用Eclipse的代码辅助/自动完成支持会很有用.这个过程对Solr扩展非常有效:
问题是:这似乎不适用于所有扩展.E. g.为扩展添加MongoDB支持PHP.这是为什么?
比较文件夹的内容,我注意到Mongo扩展程序缺少像docs/documentation.php这样的php文件(它包含在Solr扩展中).而所有相关的*.h和*.c文件都可用.
我必须自己生成某些文件吗?
提前感谢您的提示,欢呼!
我想知道如何摆脱这个错误.我在Windows Server上运行了PHP 5.3.
在我的一个文件中,我需要做一个HttpRequest.问题是我需要一个我找不到的特定*.dll(pecl_http.dll).有没有其他方法可以做到这一点,或者有人为*5.3d的PHP.?
谢谢你的帮助
亚历山大
因此,我试图上传一个进度条,我安装了uploadprogress pecl,如果表单中的操作导致upload.php任何其他名称,并且它停止工作,则上传工作正常.
如果名称不是upload.php输出只是"100"(可以看到下面的getprogress.php文件的原因)这是形式:(这个版本工作,因为文件是upload.php)
<form method="post" action="/test/upload.php" enctype="multipart/form-data" id="upload-form" target="upload-frame">
<input type="hidden" id="uid" name="UPLOAD_IDENTIFIER" value="<?php echo $uid; ?>">
<input type="file" name="file">
<input type="submit" name="submit" value="Upload!">
</form>
</div>
<div style="float:left;width:100%;">
<div id="progress-bar"></div>
</div>
<iframe id="upload-frame" name="upload-frame"></iframe>
Run Code Online (Sandbox Code Playgroud)
这是jquery:
<script>
(function ($) {
var pbar;
var started = false;
$(function () {
$('#upload-form').submit(function() {
pbar = $('#progress-bar');
pbar.show().progressbar();
$('#upload-frame').load(function () {
started = true;
});
setTimeout(function () {
updateProgress($('#uid').val());
}, 1000);
});
});
function updateProgress(id) {
var time = new …Run Code Online (Sandbox Code Playgroud) 所以我在本地安装了pecl oauth模块,这一切都很完美.然后我尝试为生产服务器执行此操作但遇到了一些问题.
如果我说sudo pecl install oauth,我会收到此错误:
No releases available for package "pecl.php.net/oauth"
install failed
Run Code Online (Sandbox Code Playgroud)
所以我想我必须更新pecl.php.net,所以我尝试了命令sudo pecl channel-update pecl.php.net,但后来我得到了这个输出:
Updating channel "pecl.php.net"
Channel "pecl.php.net" is not responding over http://, failed with message:
Connection to 'pecl.php.net:80' failed: Connection refused
Trying channel "pecl.php.net" over https:// instead
Cannot retrieve channel.xml for channel "pecl.php.net" (Connection to `pecl.php.net:443' failed: Connection refused)
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?
我正在使用CodeIgniter和PHPExcel来读取和写入excel文件.
在localhost中一切正常,但是当我将我的PHP CodeIgniter应用程序上传到pagodabox中的服务器时,当我尝试从excel文件中读取数据时,我得到了以下消息.
Fatal error: Uncaught exception 'Exception' with message 'ZipArchive library is not enabled' in /var/www/application/libraries/PHPExcel/Reader/Excel2007.php
Run Code Online (Sandbox Code Playgroud) 我遇到了与此相同的问题,但提供的解决方案对我不起作用.
我从Symfony下载页面下载了带有供应商软件包的Symfony 2.4.1标准供应商.解压缩文件并下载composer.phar后,我运行php composer.phar install并收到此错误:
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- symfony/icu v1.2.0 requires lib-icu >=4.4 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
- symfony/icu v1.2.0 requires lib-icu >=4.4 -> the requested linked library …Run Code Online (Sandbox Code Playgroud) 我已经安装了“ UBUNTU上的PHP PECL扩展/模块”。最后,要求我在名为php_ini的文件中添加一些配置行,该文件可以在以下路径中找到:
/etc/php5/apache2/php.ini
Run Code Online (Sandbox Code Playgroud)
但是,进行更改后,由于文件是只读的,因此无法保存文件。
保存我的更改的适当操作是什么。我真的不是为什么文件是只读的,我也不知道我是否需要做一些事情。我是Ubuntu / php的新手
感谢您的帮助。
我试图在Amazon Linux上安装PHP的mongodb驱动程序.运行时sudo pecl install mongo,我收到错误消息:
fatal error: openssl/evp.h: No such file or directory
#include <openssl/evp.h>
^
compilation terminated.
make: *** [io_stream.lo] Error 1
ERROR: `make' failed
Run Code Online (Sandbox Code Playgroud)
PEAR版本:1.9.5 PHP版本:5.3.29
我安装了gcc,这帮助我进一步推进安装直到出现此错误.
我能找到的最佳指南是:http: //jonathanhui.com/install-mongodb-amazon-linux PHP的指南:http://php.net/manual/en/mongo.installation.php
sudo pecl install trader
显示这样的错误XML Extension not found.
[whitebear@jp2 ~]$ sudo pecl install trader
Warning: Invalid argument supplied for foreach() in Command.php on line 259
Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 259
Warning: Invalid argument supplied for foreach() in Command.php on line 259
Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 259
Warning: Invalid argument supplied for foreach() in Command.php on line 259
Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on …Run Code Online (Sandbox Code Playgroud) 我用我的Mac开发了三个项目:Android应用程序,iPhone应用程序和Symfony项目.
我的Symfony项目使用Redis和APCu扩展.这是通过PECL安装(6个月前),使用:
sudo pecl install redis
Run Code Online (Sandbox Code Playgroud)
和
sudo pecl install apcu
Run Code Online (Sandbox Code Playgroud)
昨天,在将我的mac更新为Mojave,并尝试像往常一样启动我的PHP的内置Web服务器之后,我收到以下错误:
尝试从全局命名空间加载类"Redis".你忘记了"使用"声明吗?
我也注意到php.ini在安装过程中被删除了,所以我用php.ini-previous它php.ini再次生成了.
还重新安装了命令行工具(在安装过程中删除):
xcode-select --install
Run Code Online (Sandbox Code Playgroud)
最后,我尝试再次通过PECL安装redis extenison:
sudo pecl install redis
Run Code Online (Sandbox Code Playgroud)
这次PECL抛出一个错误:
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /private/tmp/pear/temp/pear-build-root1vQ0zO/redis-4.1.1/libtool --mode=compile cc -I. -I/private/tmp/pear/temp/redis -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-root1vQ0zO/redis-4.1.1/include -I/private/tmp/pear/temp/pear-build-root1vQ0zO/redis-4.1.1/main -I/private/tmp/pear/temp/redis -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/redis/redis.c -o redis.lo
mkdir .libs
cc -I. -I/private/tmp/pear/temp/redis -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-root1vQ0zO/redis-4.1.1/include -I/private/tmp/pear/temp/pear-build-root1vQ0zO/redis-4.1.1/main -I/private/tmp/pear/temp/redis -I/usr/include/php -I/usr/include/php/main …Run Code Online (Sandbox Code Playgroud) pecl ×10
php ×10
pear ×2
symfony ×2
autocomplete ×1
codeigniter ×1
eclipse ×1
httprequest ×1
icu ×1
jquery ×1
linux ×1
macos-mojave ×1
mongodb ×1
phpexcel ×1
progress-bar ×1
ubuntu ×1
upload ×1
windows ×1
ziparchive ×1