Langsung ke konten utama

tips cara mengaktifkan extension PHP dan cara cek aktifnya

PHP
tips ini akan bantu sobat bagaimana cara mengaktifkan extension pada PHP. salah satu contohnya adalah meaktifkan extension fileinfo. langsung aja sob kita praktekkan tips nya.
langkah pertama
kita ke folder ext, karena cangkal install xampp menggunakan windows 7 dan terinstall pada drive D, maka letak folder ext ada di sini "D:\xampp\php\ext".
setelah itu kita buka cek file "php_fileinfo.dll" apakah ada, apabila sudah ada lanjutkan langkah selanjutnya
langkah selanjutnya adalah mengintegrasikan file "php_fileinfo.dll" ke PHP. caranya adalah sebagai berikut.
1. kita ke folder "D:\xampp\php" kemudian cari file "php.ini" lalu buka dengan notepad.exe
2. [ctrl + F] untuk mencari kata kunci extension.
3. tambahkan script "extension=php_fileinfo.dll" pada baris terakhir extension = bla.. bla bla..
4. simpan file "php.ini" yang sudah diedit tadi.
5. restart apache.

sekarang bagaimana cara mengecek bahwa extension file info sudah terintegrasi dengan PHP. yuk tulis script singkat dibawah ini

<?php

 if (!function_exists('finfo_file')) {
     echo ' [ERROR] Fileinfo extension is NOT enabled.';
 } else {
     echo ' [OK] Fileinfo extension is enabled.';
 }

?>

script tadi simpan dengan nama "test.php" dan letakkan pada folder htdoc.
buka browser, terserah aja bisa firefox, crome atau yang lainya.
ketik URL http://localhost/test.php
cek apakah kata yang keluar seperti gambar di bawah ini?

extensin fileinfo

Komentar

  1. As reported by Stanford Medical, It's indeed the one and ONLY reason this country's women live 10 years longer and weigh 42 pounds less than we do.

    (And actually, it has NOTHING to do with genetics or some secret-exercise and really, EVERYTHING related to "HOW" they are eating.)

    P.S, I said "HOW", and not "WHAT"...

    TAP this link to determine if this short test can help you find out your real weight loss potential

    BalasHapus
  2. Did you realize there's a 12 word phrase you can communicate to your crush... that will induce intense feelings of love and impulsive appeal for you deep within his chest?

    That's because deep inside these 12 words is a "secret signal" that triggers a man's instinct to love, admire and look after you with his entire heart...

    =====> 12 Words Will Fuel A Man's Desire Impulse

    This instinct is so built-in to a man's brain that it will drive him to try harder than before to love and admire you.

    Matter-of-fact, triggering this all-powerful instinct is so important to having the best ever relationship with your man that the instance you send your man a "Secret Signal"...

    ...You'll instantly notice him open his heart and mind to you in a way he never expressed before and he'll see you as the only woman in the world who has ever truly fascinated him.

    BalasHapus

Posting Komentar

penulis senang dengan adanya pembaca yang meninggalkan jejak. :)

Postingan populer dari blog ini

codeigniter mengambil data JSON dari URL

Sekarang pertukaran data baik itu dekstop, mobile, web sangat mudah dilakukan dengan adanya JSON. Banyak API yang menyediakan dengan format JSON, seperti api.tiket.com, api.cekresi.com bahkan perusahaan besar semacam facebook, google, twitter juga menggunakan API. Cangkal kali ini mencoba sharing bagaimana mengambil data JSON dari URL (website) menggunakan framework codeigniter. URL yang digunakan yaitu http://jsonplaceholder.typicode.com/posts/ . URL ini memang sengaja dibuat untuk digunakan sebagai testing. Data JSON yang diberi oleh URL tadi bentuknya seperti ini [{ "userId": 1, "id": 1, "title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit", "body": "quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto" }, { "userId": 1, "id": 2,

ip whatsapp dari dns cache mikrotik

selamat pagi sob, kita ketahui setiap administrator memanajemen rule alias lalu lintas mikrotik dengan berbagai cara untuk memenuhi kebutuhan instansi / perusahaan. pada postingan ini ilustrasinya adalah sebagai berikut sebuah perusahaan ingin menjalin komunikasi lewat media whatsapp, akan tetapi akses intenet harus ditutup. Oleh karena itu seorang administrator networking membuat rule sesuai permintaan perusahaan tersebut. Adress Lists Whatsapp

postfixadmin your email address or password is not correct. can't open file letsencrypt privkey.pem

[Wed Feb 02 08:53:49.429318 2022] [php7:notice] [pid 1445731] [client 180.252.186.123:64290] Failed to read password from /usr/bin/doveadm pw -r 5 ... stderr: doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl.conf line 16: ssl_key: Can't open file /etc/letsencrypt/live/mail.binasaranasukses.com/privkey.pem: Permission denied\n, password: , referer: https://postfixadmin.example.com/login.php [Wed Feb 02 08:53:49.429526 2022] [php7:notice] [pid 1445731] [client 180.252.186.123:64290] Error while trying to call pacrypt(), referer: https://postfixadmin.example.com/login.php [Wed Feb 02 08:53:49.429590 2022] [php7:notice] [pid 1445731] [client 180.252.186.123:64290] Exception: /usr/bin/doveadm pw -r 5 failed, see error log for details in /var/www/postfixadmin/functions.inc.php:1060\nStack trace:\n#0 /var/www/postfixadmin/functions.inc.php(1275): _pacrypt_dovecot()\n#1 /var/www/postfixadmin/model/Login.php(36): pacrypt()\n#2 /var/www/postfixadmin/public/login.php