Posts

Showing posts from April, 2020

CARA MEMBUAT FITUR CHAT DI CODEIGHNITER DENGAN WEB SOCKET

Image
1. Langkah pertama Download Web Socket      Download Websocket 2.  Langkah kedua Extract dan paste folder ke xampp/htdocs/<nama project kamu>   3.  Masuk ke Sublime, dan masuk ke application/config/autoload.php enablekan helper url         $autoload [ 'helper' ] = array ( 'url' ); 4. Pada application/config/config.php ganti base_url       $config [ 'base_url' ] = 'http://localhost/ci-websocket/' ; 5. kemudian paste kan code kehalaman index.php / html nya   <? php defined('BASEPATH') OR exit('No direct script access allowed'); ?><!DOCTYPE html> < html lang = "en" > < head >      < link rel = "stylesheet" type = "text/css" href="/<?php echo base_url()?>public/css/message.css">      < script src="/<?php echo base_url()?>public/js/message.js"></ script >  ...