Cara menggunakan download php dll

Jika Anda ingin menggunakan library yang menghasilkan grafik seperti chart maka ekstensi GD harus diaktifkan pada instalasi PHP Anda. GD sendiri 

Artikel berikut akan menunjukkan cara mengaktifkan GD library pada distribusi XAMPP. Namun konfigurasi PHP GD untuk distribusi lain kurang lebih sama.

Cara menggunakan download php dll

Cara menggunakan download php dll

Cara menggunakan download php dll

Saya adalah penggemar framework Kohana, baru-baru ini Kohana mengeluarkan versi terbarunya yaitu Kohana 3.3 dan membutuhkan PHP 5.3, sedangkan versi PHP yang sedang saya gunakan adalah PHP 5.2. Mau tidak mau saya harus mengganti ke PHP 5.3, dan saya kira akan mudah namun ada beberapa masalah ketika saya akan mengganti ke PHP 5.3 berikut adalah langkah-langkahnya :
1. Saya Asumsikan Anda sudah mendownload dan menginstall Apache 2.2
Tambahkan konfigurasi berikut pada httpd.conf

LoadModule php5_module C:/PHP53/php5apache2_2.dll
AddType application/x-httpd-php .php .inc
PHPIniDir C:/PHP53/

*perhatian C:/PHP53/ adalah direktori dari PHP 5.3 saya

2. Download dan ekstrak PHP 5.3 (yang saya gunakan adalah 5.3.5-Win32-VC6-x86 thread safe)
Edit konfigurasi php.ini Anda
Tambahkan

date.timezone = "Asia/Jakarta"
extension_dir = "C:\PHP53\ext"

dan juga jika Anda akan mengaktifkan extension, hilangkan saja tanda ; (titik koma)
contoh :

;extension=php_bz2.dll
extension=php_curl.dll
;extension=php_fileinfo.dll
extension=php_gd2.dll
extension=php_http.dll
;php_http.dll dari http://downloads.php.net/pierre/php_http-5.3-svn20091125-vc6-x86.zip
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_intl.dll
extension=php_imap.dll
;extension=php_interbase.dll
extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_exif.dll ; Must be after mbstring as it depends on it
extension=php_mysql.dll
;extension=php_mysqli.dll
extension=php_oci8.dll ; Use with Oracle 10gR2 Instant Client
;extension=php_oci8_11g.dll ; Use with Oracle 11gR2 Instant Client
extension=php_openssl.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
extension=php_pgsql.dll
;extension=php_pspell.dll
;extension=php_shmop.dll

; The MIBS data available in the PHP distribution must be installed.
; See http://www.php.net/manual/en/snmp.installation.php
;extension=php_snmp.dll
extension=php_soap.dll
;extension=php_sockets.dll
extension=php_sqlite.dll
;extension=php_sqlite3.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
extension=php_xmlrpc.dll
extension=php_xsl.dll
;extension=php_zip.dll
extension=php_xdebug.dll
;php_xdebug.dll dari http://downloads.php.net/pierre/php_xdebug-2.0.5-5.3-Win32-VC6-x86.zip
extension=php_apc.dll
;php_apc.dll dari http://dev.freshsite.pl/nc/php-accelerators/apc/download/apc-316-for-php-53-vc6.html

*untuk extension disarankan menggunakan library VC6
Karena saya menggunakan php APC, maka saya menambah konfigurasi

apc.shm_size=32M

Ada perubahan pada konfigurasi apc.shm.size ditambahkan M untuk MB atau G untuk GB.
*jika belum diubah maka akan muncul error PHP Warning: PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files
Lalu start/restart apache server.
It’s works now i’m using PHP 5.3, can’t wait to try Kohana 3.3.

Sekian, jika ada pertanyaan silahkan ditunggu komentarnya 🙂

Website yang berguna untuk pengguna PHP windows http://downloads.php.net/pierre/

On Windows, you have two ways to load a PHP extension: either compile it into PHP, or load the DLL. Loading a pre-compiled extension is the easiest and preferred way.

To load an extension, you need to have it available as a ".dll" file on your system. All the extensions are automatically and periodically compiled by the PHP Group (see next section for the download).

To compile an extension into PHP, please refer to building from source documentation.

To compile a standalone extension (aka a DLL file), please refer to building from source documentation. If the DLL file is available neither with your PHP distribution nor in PECL, you may have to compile it before you can start using the extension.

Where to find an extension?

PHP extensions are usually called "php_*.dll" (where the star represents the name of the extension) and they are located under the "PHP\ext" folder.

PHP ships with the extensions most useful to the majority of developers. They are called "core" extensions.

However, if you need functionality not provided by any core extension, you may still be able to find one in » PECL. The PHP Extension Community Library (PECL) is a repository for PHP Extensions, providing a directory of all known extensions and hosting facilities for downloading and development of PHP extensions.

If you have developed an extension for your own uses, you might want to think about hosting it on PECL so that others with the same needs can benefit from your time. A nice side effect is that you give them a good chance to give you feedback, (hopefully) thanks, bug reports and even fixes/patches. Before you submit your extension for hosting on PECL, please read » PECL submit.

Which extension to download?

Many times, you will find several versions of each DLL:

  • Different version numbers (at least the first two numbers should match)
  • Different thread safety settings
  • Different processor architecture (x86, x64, ...)
  • Different debugging settings
  • etc.

You should keep in mind that your extension settings should match all the settings of the PHP executable you are using. The following PHP script will tell you all about your PHP settings:

Or from the command line, run:

drive:\\path\to\php\executable\php.exe -i

Loading an extension

The most common way to load a PHP extension is to include it in your php.ini configuration file. Please note that many extensions are already present in your php.ini and that you only need to remove the semicolon to activate them.

Note that, on PHP version 7.2.0 and up, the extension name may be used instead of the extension's file name. As this is OS-independent and easier, especially for newcomers, it becomes the recommended way of specifying extensions to load. File names remain supported for compatibility with prior versions.

;extension=php_extname.dll

extension=php_extname.dll

; On PHP version 7.2 and up, prefer :
extension=extname
zend_extension=another_extension

However, some web servers are confusing because they do not use the php.ini located alongside your PHP executable. To find out where your actual php.ini resides, look for its path in phpinfo():

Configuration File (php.ini) Path  C:\WINDOWS

Loaded Configuration File   C:\Program Files\PHP\5.2\php.ini

After activating an extension, save php.ini, restart the web server and check phpinfo() again. The new extension should now have its own section.

Resolving problems

If the extension does not appear in phpinfo(), you should check your logs to learn where the problem comes from.

If you are using PHP from the command line (CLI), the extension loading error can be read directly on screen.

If you are using PHP with a web server, the location and format of the logs vary depending on your software. Please read your web server documentation to locate the logs, as it does not have anything to do with PHP itself.

Common problems are the location of the DLL and the DLLs it depends on, the value of the "" setting inside php.ini and compile-time setting mismatches.

If the problem lies in a compile-time setting mismatch, you probably didn't download the right DLL. Try downloading again the extension with the right settings. Again, phpinfo() can be of great help.