Ubuntu Cannot Ping Domain

Create a file called /etc/resolv.conf write fill in the contents: nameserver For example if your want to use googles dns-service: nameserver 8.8.8.8 nameserver 8.8.4.4 This is likely caused by DHCP configuration when you first installed Ubuntu. Try this 3-step process to handle this auto configuration issue. First Edit your interface configuration, which is located in: /etc/network/interfaces Add this line below iface lo inet loopback: dns-nameservers yourdns youraltdns As ...

View More
  Dibaca 1912 kali

How can I disable MySQL Strict Mode?

This is enabled by default, but you can disable it in one of a couple ways. First, verify which mode(s) MYSQL is running with: $ mysql -u root -p -e "SHOW VARIABLES LIKE 'sql_mode';" You'll need to replace root with whatever username has superuser permissions on your server (but, it's usually just root). You'll also be prompted for the password. This will print out something like this (but much prettier): sql_mode: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_D ...

View More
  Dibaca 2598 kali

PHP Session not Saving

Your session directory (probably /tmp/) is not writable. Check with session_save_path() if it is writable. if (!is_writable(session_save_path())) { echo 'Session path "'.session_save_path().'" is not writable for PHP!'; } ...

View More
  Dibaca 2252 kali

Query untuk Mencari Data yang Dobel di Database

Cara cari data double Untuk mencari data yang dobel dalam sebuah database kita bisa menggunakan sebuah query sederhana yang bisa kita implementasikan antara lain di MySQL dan MS SQL (saya belum pernah menggunakan database lain seperti Oracle, atau PostgreSQL yang juga banyak digunakan orang). Sebagai contoh, saya memiliki sebuah tabel berisi data buku perpustakaan bernama tblBuku dengan field JudulBuku, NomorRegistrasi dan TanggalMasuk. Suatu ketika terjadi kesalahan pengisian data sehingga ada ...

View More
  Dibaca 60 kali