Balivilla
Environment : PHP5, codeigniter, jquery, mysql
there are 2 files that needed to be edited in order to create virtual host on local computer . 1. apache side : ./apache/conf/httpd.conf enable for include httpd-vhosts.conf : Include conf/extra/httpd-vhosts.conf ./apache/conf/extra/httpd-vhosts.conf , to configure the virtual host ex : NameVirtualHost 127.0.0.1 <VirtualHost 127.0.0.1> DocumentRoot “E:/folder/to/web1/” ServerName web1.local </VirtualHost> <VirtualHost 127.0.0.1> DocumentRoot “E:/folder/to/web2/” ServerName [...]
When I bought a new PC , I need to share the internet connection I have at home . Previously with 1 notebook at home, I just need adsl modem plug into my notebook. But with the new PC , I need to share the internet connection using a wireless router . After searching, my [...]
It’s very simple to setting adsl modem with the wrt54gh. It’s because I need to access internet when I’m in my friend’s house. But he only have 1 internet connection using telkom speedy adsl modem tp link td-8817. So I brought my wireless router (linksys wrt54GH) and setup there. I’ll post later how to setup [...]
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / Redirect / http://www.new-address.com/ RewriteRule (.*) http://www.new-address.com/$1 [L] </IfModule> explanation :
Helo, I found this in the internet when I need to custom my 404 page . Because the default 404 page from codeigniter is so ‘default’ . When the application can not found the page requested, it handle by the Exceptions in the codeigniter , function show_404. You can find the file in the ‘./libraries/Exceptions.php’ [...]
I found an interesting code when I’m coding.
what is difference between :
$_fx = &$a ;
with
$_fx = $a ;
The first one, we call it parsing reference, and the second one , is parsing value.
you can see the difference with this sample :
gw kehilangan dompet beberapa minggu lalu , yg isi nya KTP, SIM A , dan SIM C . Untung gw jarang2 banget bawa kartu kredit or kartu debet di dompet kalau tidak penting. Yang ingin gw ceritain di sini , pengalaman gw ngurus sim . pertama2 , jelas, kita harus ke kantor polisi untuk melaporkan [...]
Ini gw dapet dari php.net waktu gw nyari fungsi u/ mengubah character non alphanumeric ke ‘-’ . Berguna u/ merename filename yg aneh2 atau hal2 lain :