php-extension

XML Extension not found

谁说我不能喝 提交于 2020-01-03 08:55:53
问题 I have centos 6.5 server and when I try to install php extension using pecl I get the following error: XML Extension not found All the documentations say that this extension is included by default... Why this error still exists? 回答1: According to a comment on php.net Certain Linux distributions do not have this extension included in the minimum PHP package. It can usually be found in one of the "optional" php-* packages. For CentOS, you will need to run yum install php-xml , which provides

Allowed memory size of 134217728 bytes exhausted in PhpExcel [duplicate]

混江龙づ霸主 提交于 2020-01-03 04:40:11
问题 This question already has answers here : PHPExcel runs out of 256, 512 and also 1024MB of RAM (7 answers) Closed 6 years ago . i export file xlsx using phpexcel, data have 32 cols and many rows. Each day data increase so data will very big. This is my code: $filename="data.xlsx"; $cacheMethod = PHPExcel_CachedObjectStorageFactory:: cache_to_phpTemp; $cacheSettings = array( 'memoryCacheSize' => '128MB'); PHPExcel_Settings::setCacheStorageMethod($cacheMethod, $cacheSettings); ini_set('max

Call to undefined function mssql_connect()

≡放荡痞女 提交于 2019-12-25 18:17:03
问题 I always used PHP 5.2.3 version, but now I updated PHP to version 5.3.2. I have problem with MSSQL, I can`t connect to MSSQL server. I have downloaded a SQL server driver for PHP 1.1 There are a lot of files, I used php_sqlsrv_53_ts_vc9 . Put it on php/ext directory php_sqlsrv_53_ts_vc9 . I have added extension=php_sqlsrv_53_ts_vc9.dll (in php.ini), but it gives an error: Call to undefined function mssql_connect() in C:\webserver\www\MSSQl\db_mssql.class.php on line 26 I have used:

Php uploadprogress installation

浪子不回头ぞ 提交于 2019-12-25 07:26:56
问题 I am using " pecl install uploadprogress " command for intalling php uploadprogress in my localhost(windows-xampp). But in CMD it is giving an error that " ERROR: failed to mkdir C:\php\pear\docs\uploadprogress\examples " What kind of error is this? How can I install this upload progress on server My Xampp is installed in *C:/xamp_server/xampp* 来源: https://stackoverflow.com/questions/15359694/php-uploadprogress-installation

php extension compiles with newer API version than my PHP

倾然丶 夕夏残阳落幕 提交于 2019-12-25 02:12:44
问题 This is driving me nuts : I'm trying to compile a php extension for a library (www.phah.org), which compiles fine, but when I try to enable load it with php, I have the following warning (this is actually the output of make test): PHP Warning: PHP Startup: pHash: Unable to initialize module Module compiled with module API=20100525 PHP compiled with module API=20090626 The confusing thing is when i do phpize before compiling, it shows the right API version : $ phpize Configuring for: PHP Api

PHP extensions not found via httpd but are found from CLI, with the same php.ini

落花浮王杯 提交于 2019-12-24 09:52:10
问题 I wanted to use some extensions of PHP 7.1 after installing it and Apache 2.4 and on my Windows 7. I wrote a small test script index.php to call some functions of the given extensions. <?php var_dump(mb_strlen('p')); var_dump(mysqli_connect_error()); and uncommented the appropriate lines from the php.ini , like ... ;extension=php_ldap.dll extension=php_mbstring.dll ;extension=php_exif.dll ; Must be after mbstring as it depends on it extension=php_mysqli.dll ;extension=php_oci8_12c.dll ; Use

how to access a variable from a class using php extension?

Deadly 提交于 2019-12-24 03:30:56
问题 I am working in c++ under ubuntu. I have the following example: [car.h] #ifndef VEHICLES_CAR_H #define VEHICLES_CAR_H // A very simple car class class Car { public: Car(); void shift(int gear); bool accelerate(); void brake(); int getCurrentSpeed(); int getCurrentGear(); public: int maxGear; int currentGear; int speed; }; #endif /* VEHICLES_CAR_H * / [car.cc] #include "car.hpp" #include "car2.hpp" #include "car2.cc" #include "car3.h" #include "car3.cc" #include <stdio.h> #include <iostream>

EVP_BytesToKey implementation in PHP

淺唱寂寞╮ 提交于 2019-12-24 01:33:29
问题 I've been trying to implement the exact same function in PHP as the one in C. However, I have not seen the exact same outcome. I think the problem is with the "count" or iteration that I still do not totally understand. Function definition: int EVP_BytesToKey(const EVP_CIPHER *type, const EVP_MD *md, const unsigned char *salt, const unsigned char *data, int datal, int count, unsigned char *key, unsigned char *iv) Here is the link to the C function implementation: evp_key.c. Here is what I

EVP_BytesToKey implementation in PHP

倖福魔咒の 提交于 2019-12-24 01:31:29
问题 I've been trying to implement the exact same function in PHP as the one in C. However, I have not seen the exact same outcome. I think the problem is with the "count" or iteration that I still do not totally understand. Function definition: int EVP_BytesToKey(const EVP_CIPHER *type, const EVP_MD *md, const unsigned char *salt, const unsigned char *data, int datal, int count, unsigned char *key, unsigned char *iv) Here is the link to the C function implementation: evp_key.c. Here is what I

macOS Sierra installing PHP Extension intl

纵饮孤独 提交于 2019-12-23 13:05:16
问题 I am trying to get magento 2.x to run on my machine. I am using xampp 5.6 with the same php version and running a virtual apache server. As seen in this screenshot The PHP Extension intl. is missing. I was researching on how it can be added / activated. I tried uncommenting the extension in the php.ini of xampp but it still appears as missing. I tried to follow this guide, but when I try to install intl with sudo pecl install intl it fails with 2 warnings and 1 error generated. make: *** [php