- [PHP] Create User Roles Tutorial
-
Tutorial how to create user role for permissions with PHP
Link: http://www.sitepoint.com/role-based-access-control-in-php
- [PHP][Codeigniter] Learn Codeigniter 3 in one hour
#Opening a Port on Linux#
Check if the port is being used or not (testing port 3000 in this example)
$ netstat -na | grep 3000
If the port is in use, then most likely it will be the software firewall blocking you. You can check by running
| <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
| /** | |
| * MY_Controller | |
| * Base controller class for initialize codeigniter projcet | |
| * | |
| * created by acing at 01/11/2015 12:01 WIB | |
| */ | |
| class MY_Controller extends CI_Controller { | |
| /** |
| <?php | |
| /** | |
| * Global function | |
| * place for all global function | |
| */ | |
| $GLOBALS['CI'] =& get_instance(); | |
| if (! function_exists('flash_message')) | |
| { | |
| function flash_message($can_hide = false) { |
| let d = [{ | |
| "name": "CEO", | |
| "parent": null, | |
| "id": "5847e80312896b2fa49ce428" | |
| }, { | |
| "name": "A", | |
| "parent": "5847e80312896b2fa49ce428", | |
| "id": "5847f58289046550aa05a49d" | |
| }, { | |
| "name": "A1", |
So follow these steps to upgrade node:
sudo npm cache clean -fsudo npm install -g nsudo n stablesudo ln -sf /usr/local/n/versions/node/5.4.1/bin/node /usr/bin/node (the bold text/version should be the one installed in during above step.)ie if 8.1.1 is installed then do sudo ln -sf /usr/local/n/versions/node/8.1.1/bin/node /usr/bin/node
node –v (Should show updated version now)
| // change this package name based on your current package | |
| package com.servertechno.e_bikes.activities; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.os.Bundle; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.util.Log; | |
| import com.android.volley.VolleyError; |