php-extension

PHP Warning: Unable to load dynamic library

喜欢而已 提交于 2019-11-30 15:37:30
问题 Ok I have PHP working on my mac os x Apache 2 server. Problem I am having is it can't seem to find the extensions that allow me to connect to an sqlite database. extension = php_sqlite.dll extension = php_pdo_sqlite.dll extension = php_sqlite3.dll I get this error now that I have uncommented these extensions.. PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_sqlite3.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626

PHP Warning: Unable to load dynamic library

隐身守侯 提交于 2019-11-30 14:17:59
Ok I have PHP working on my mac os x Apache 2 server. Problem I am having is it can't seem to find the extensions that allow me to connect to an sqlite database. extension = php_sqlite.dll extension = php_pdo_sqlite.dll extension = php_sqlite3.dll I get this error now that I have uncommented these extensions.. PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_sqlite3.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_sqlite3.dll, 9): image not found in Unknown on line 0 It is the same error for all 3. Now I have

PDO_SQLITE driver not present.. what to do?

喜欢而已 提交于 2019-11-30 07:51:54
I see everywhere (including on the official docs) that the PDO_SQLITE driver is/should be included by default in PHP. However, when I look at my extension_directory , I see only these files: gd.so mcrypt.so mysqli.so mysql.so pdo_mysql.so pdo.so And, as a result, a framework I'm trying to install (Symfony) tells me I need to install either the PDO_SQLITE or the SQLite3 .so extensions... Can anyone help? Can I just try and find the needed .so file somewhere on the web, place it in my extensions_directory and then include it in php.ini ?? BTW: I'm running php 5.3.6 downloaded via apt-get on

Trying to get imagick running on PHP 5.4.3 at Windows x64

走远了吗. 提交于 2019-11-30 05:01:34
问题 I have Windows 7 64 bits, PHP 5.4.3 installed through WAMP 2.2 and imagick ( ImageMagick-6.8.3-9-Q16-x64-dll.exe ). I tried to use the php's dll of imagick from a lot of sources but all of them give this error in apache_error.log: PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.4.3/ext/php_imagick.dll' - %1 is not a valid Win32 application.\r\n in Unknown on line 0 Any thoughts on how to solve this? 回答1: perhaps this can help you: step-by-step instructions for

PHP 5.3+ enable_dl not enabling dl()?

大城市里の小女人 提交于 2019-11-30 04:42:42
问题 I am trying to install a 3rd party PHP extension (.so) into PHP 5.3.6-13 on Ubuntu 11.10 and use it in a web environment. The vendor's documentation suggests using the dl() function to dynamically load the library. When I try their example code, I find the dl() isn't available (Fatal error: call to undefined function dl()) as dl() function was deprecated in PHP 5.3. But there is an enable_dl config rule in php.ini, and other sources say that I should be able to use dl() simply by changing the

PHP Startup: Unable to load dynamic library `curl.so` Ubuntu

折月煮酒 提交于 2019-11-30 01:08:45
问题 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/curl.so' - /usr/lib/php/20131226/curl.so: undefined symbol: zend_unset_property in Unknown on line 0 I am using Ubuntu 14.04 LTS and PHP v5.6 There are other versions in same machine php5 and php7 but php5.6 has been enabled. I tried to install cURL by sudo apt-get install php5.6-curl Now I am getting Unable to load dynamic library curl.so After running php -i | grep ini I get the following root@ubuntu:/etc/php/5

Linking a PHP Extension Written in C

☆樱花仙子☆ 提交于 2019-11-29 23:56:47
问题 Edit: Revising My Question When building an external PHP module in C, how do I link shared objects? 回答1: If your C extension code uses a shared library, you need to declare that in the config.m4 file. I strongly recommend using the ext_skel script that's included in the PHP source to generate a skeleton config.m4: ./ext_skel --extname=myextension Since you're linking to a library, by convention you should use the --with-myextension options (as opposed to --enable-myextension ). Uncomment the

Can't phpize or configure an extension in OS X 10.9 Mavericks

孤人 提交于 2019-11-29 20:48:18
I am trying to build the memcached extension on OS X 10.9 Mavericks for use with the built in PHP 5.4, initially I tried pecl install memcached but that threw the following. checking for zlib location... configure: error: memcached support requires ZLIB. Use --with-zlib-dir=<DIR> to specify the prefix where ZLIB headers and library are located ERROR: `/private/tmp/pear/install/memcached/configure' failed So I created a tmp directory and executed pecl download memcached , unzipped the code and cd'd to the appropriate directory. Trying to phpize it returned the following: grep: /usr/include/php

How to install PHP 7 extension “memcache” on Windows

十年热恋 提交于 2019-11-29 14:34:58
I'm having huge problems installing memcached extension for php. Currently using: OS: Windows 10 x64 PHP: 7.0.1 via XAMPP Apache: 2.4.18 (Win32) I have successfully installed memcached in C:/memcached the service is running. But the problem starts when trying to add the memcache php extension. I've tried numerous versions of php_memcache.dll and non seem to be working. I did include the extension in php.ini extension=php_memcache.dll When i run php -m memcache is not listed and at the top i recieve the error: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_memcache.dll' - The

How do I compile an extension for PHP 5.3 for windows as a DLL?

房东的猫 提交于 2019-11-29 13:39:00
问题 I'm currently rewriting a PHP Extension that was originally written for PHP 4.2.2. My issue is having the build/compile process generate a .dll instead of compiling the extension into the PHP core. The environment is windows server 2003. I'm using Visual Studio 2008. I used the EXT_SKEL script to generate the framework, and I can succesfully compile the extension into the php core. I'm trying to instead compile it as a .dll so I can easily distribute it to my clients. Can anyone point me in