Coder Social home page Coder Social logo

php-essential-plugin's Introduction

PHP-Essential-plugin

PHP essential plugin 입니다

HOW-To-Use

/config/user_conf.php를 열어 db => 에 있는 array를 수정해주세요

host => db의 host [localhost]
user => 유저명
pass => 비밀번호
database => db 이름

그리고 index.php로 접속해보면 hello module! 이라는 메세지가 뜬다면 성공입니다!

설명

함수 리스트

executequery($query) : sql쿼리를 실행합니다.
리턴 형식 : stdClass

stdclass(
  sql => 쿼리 문,
  status => 성공 상태(200, 404),
  sum => select시 선택된 개수
  data => array(
    [0] => db에 있는 값
    .. sum 만큼의 배열이 있음
  ),
)

sql_secure($val) : get이나 post로 들어온 값의 sql 인젝션을 막습니다
리턴 형식 : String

include_module($module) : /module/$module/$module.class.php 파일을 불러옵니다
리턴 없음

__get($var) : $_GET['var']와 같습니다.

__post($var) : $_POST['var']와 같습니다.

__require($var) : $_REQUIRE['var']와 같습니다.

isSecure() : https 연결인지 http 연결인지 확입합니다
리턴 값 : Boolean

php-essential-plugin's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.