Download and install right version of ghostscript. In my case my PHP was x86 architecture, so I download Ghostscript 9.14 for Windows (32 bit)
.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
#RewriteRule ^(.*)$ index.php?/$1 [L] | |
RewriteRule . index.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace app\controllers; | |
use Yii; | |
use yii\web\Controller; | |
use app\models\Soapmodel; | |
/** | |
* Site Controller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use yii\db\Schema; | |
class m160804_160101_history extends \yii\db\Migration | |
{ | |
public function up() | |
{ | |
$tableOptions = null; | |
if ($this->db->driverName === 'mysql') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = require('express')(); | |
var http = require('http').Server(app); | |
var io = require('socket.io')(http); | |
io.on('connection', function(socket){ | |
console.log('new client connected'); | |
socket.on('disconnet', function(){ | |
console.log('a client disconnect'); | |
}) | |
socket.on('notif',function(msg){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return [ | |
'class' => 'yii\db\Connection', | |
'dsn' => 'pgsql:host=localhost;dbname=test', | |
'username' => 'user_database', | |
'password' => 'password_database', | |
'charset' => 'utf8', | |
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function actionInsert() | |
{ | |
$rec = [ | |
'nama_mahasiswa' => 'Yusuf Ayuba', | |
'jenis_kelamin' => 'L', | |
'tempat_lahir' => 'Tanobonunungan', | |
'tanggal_lahir' => '1980-08-23', | |
'id_agama' => 1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Install brew --> http://brew.sh/ | |
# 2. run the following commands in your Terminal | |
brew tap homebrew/dupes | |
brew tap homebrew/versions | |
brew tap homebrew/homebrew-php | |
brew install --with-openssl curl | |
brew install --with-homebrew-curl --with-apache php71 | |
brew install php71-mcrypt php71-imagick php71-pdo-pgsql | |
# 3. Follow these instructions to make Apache and php-cli use the newer php executable and make the change persist after reboot. | |
brew info php71 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vi /etc/environment | |
add these lines... | |
LANG=en_US.utf-8 | |
LC_ALL=en_US.utf-8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Download file binary PHP dari http://php.net/downloads.php (sesuaikan dengan versi php yang digunakan) | |
2. Extract file tersebut, kemudian masuk ke folder ext/pdo_pgsql | |
3. konfigurasi kembali php dengan perintah | |
~~ | |
phpize | |
./configure --with-pdo-pgsql | |
make && make install | |
~~ | |
4. restart apache | |
5. pdo_pgsql telah aktif |