by

PHP 5.6 Mac OSX 10.11.6 (El Capitan)

Check your apache version.

httpd -v
Server version: Apache/2.4.25 (Unix)

Installing PHP 5.6 With Mac OSX Default Apache

brew install php56 --with-apache

# to start apache service at boot
sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist

# to start apache service manually
sudo apachectl start

For full list of options when installing php56:

brew options php56

Configure httpd.conf:


...more

by

Hooking routes.php in CodeIgniter to Create User-Based Personal Short URL Alias

Suppose you are stuck in the middle of a case where you are challenged to create a website with thousands or millions of members. Each member may have a personal URL alias, like:
http://www.example.com/yourname

In CodeIgniter you could solved this problem by configuring the routes.php file in the application/config directory. But, the problem is, how if you have millions of user's personal URL in your web application?


...more

by

Function indonesian_date() Untuk Menampilkan Tanggal dalam Format Indonesia

Fungsi date yang disediakan oleh php nampaknya tidak bisa menyediakan fitur untuk "melokalkan"-nya ke format tanggal Indonesia yang biasanya di tampilkan seperti Senin, 11 Januari 2002.

Jadi untuk memudahkan anda para programmer PHP untuk menampilkan tanggal dalam format Indonesia seperti diatas, saya mencoba membaginya kepada anda. Kodenya cukup sederhana, hanya beberapa baris saja, berikut kodenya:


...more