Skip to content

Instantly share code, notes, and snippets.

CodeIgniter 4=composer create-project codeigniter4/appstarter %s
CodeIgniter 4 --no-dev=composer create-project codeigniter4/appstarter %s --no-dev
{"AF":"Afghanistan","AL":"Albania","DZ":"Algeria","AS":"American Samoa","AD":"Andorra","AO":"Angola","AI":"Anguilla","AQ":"Antarctica","AG":"Antigua and Barbuda","AR":"Argentina","AM":"Armenia","AW":"Aruba","AU":"Australia","AT":"Austria","AZ":"Azerbaijan","BS":"Bahamas","BH":"Bahrain","BD":"Bangladesh","BB":"Barbados","BY":"Belarus","BE":"Belgium","BZ":"Belize","BJ":"Benin","BM":"Bermuda","BT":"Bhutan","BO":"Bolivia","BA":"Bosnia and Herzegovina","BW":"Botswana","BV":"Bouvet Island","BR":"Brazil","BQ":"British Antarctic Territory","IO":"British Indian Ocean Territory","VG":"British Virgin Islands","BN":"Brunei","BG":"Bulgaria","BF":"Burkina Faso","BI":"Burundi","KH":"Cambodia","CM":"Cameroon","CA":"Canada","CT":"Canton and Enderbury Islands","CV":"Cape Verde","KY":"Cayman Islands","CF":"Central African Republic","TD":"Chad","CL":"Chile","CN":"China","CX":"Christmas Island","CC":"Cocos [Keeling] Islands","CO":"Colombia","KM":"Comoros","CG":"Congo - Brazzaville","CD":"Congo - Kinshasa","CK":"Cook Islands","CR"
<?php
$tarikh = '2040-02-01';
$format = 'l j F Y H:i';
$tarikh1 = strtotime($tarikh);
echo '<p>', date($format, $tarikh1), '</p>';
/*
Jika result adalah Thursday 01 January 1970 01:00 maksudnya
server ada masalah y2k38 kerana masih menggunakan 32bit
@nfaiz
nfaiz / phpinfo.php
Last active December 12, 2015 04:08
#1
<?php
phpinfo();
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>#</title>
</head>
<body>
<form id="dafter" method="post" action="proses.php">
<div id="data">
<input type="checkbox" name="id_staf[]" value="" />