Skip to content

chihhhhhao/common

Repository files navigation

common

Intro

A common library for PHP+Javascript.

Class prefixes:

  • _DO database
  • _SO session

Function prefixes:

  • ___ debug
  • __* hidden
  • _* system
  • _str string-related
  • _se session-related
  • _ml multilingual support

How to use

  1. Make importer.php in each project.
  2. Import importer.php in major files of the project.

An importer.php sample:

<?php

$is_debugging = true;
set_include_path(get_include_path() . PATH_SEPARATOR . '/var/www/html/common');

$__context = array('timezone' => 'America/New_York');
$__db = array('user' => 'root', 'password' => 'PasswordForRoot');
$__app = array('name' => basename(dirname($_SERVER['SCRIPT_NAME'])), 'root' => 'RootUserName');

include_once('lib-misc.php');
include_once('lib-db.php');
include_once('lib-session.php');

?>

About

A common library for PHP+Javascript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors