Class Table_export extends Ci_controller {
function __construct ()
{
Parent::__construct ();
Here you should add some sort of user validation
To prevent strangers from pulling your table data
}
Function index
!--? php
/**
* by bbs.it-home.org
* 2012-12-26
*/
class mysql{
//This property is used to save an instance
private St atic $conn;
//constructor is private to prevent
Main ideas:PHP is now widely used, and everyone is talking about OOP, MVC. I do not know these things very much, many places are not comprehensive, I hope you give correct.This framework is also guided by MVC, using the OOP idea and adding some
Support for the cutting of Chinese characters, will not appear? The half Chinese characters
Chinese character cutting, can prevent the occurrence of half Chinese characters
function Substr_cut ($title, $length =8)
{
if
Pinyin based on Chinese characters, with encoding function
/**
* pinyin.php
* Author: Cold cloud
**/
function Pinyin ($_string, $_code= ' gb2312 ')
{
$_datakey =
The goods are learned from the "Enterprise Application Architecture Model" of Martin great God, and the features of the auxiliary PHP Dynamic language can be deferred loaded (lazyload) much more easily than Java. The rationale is that a virtual
The rare has built-in class auto-mount functionality that is used directly without a require (include) class file when using a class.This kind of automatic loading function is very independent, if you need, you can directly in other frameworks (any
/** * Goofy 2011-11-29 * Image processing: According to the coordinates passed over the parameters, X,y,w,h, followed by the selected x-coordinate, y-coordinate, W-width, h-height * through the Imagecopy () method to copy the area to the first step
First, the configuration of smarty cache $smarty->cache_dir = "/caches/"; Cache directory $smarty->caching = true; Cache is turned on, flase cache is invalid $smarty->cache_lifetime = 60; SustainedFirst, the configuration of smarty cache
Former club is a game company, the boss is very good, then the work has left a lot of their own original management scripts. Now share in the office environment using Java, Jsch login VPN Management Linux script (here to implement Java call backup
Learned in a small exercise program
Package com.sdut.edu.tools;
Import Java.io.BufferedWriter;
Import java.io.IOException;
Import Java.io.InputStream;
Import Java.io.OutputStreamWriter;
Import
I'm looking at that Ecmall core file ecmall.php, see this function is written relatively clear, take out to share under
function Get_domain () {
/* protocol */
$protocol = (isset ($_server[' https ") && (strtolower ($_server['
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service