/**
* Miscellaneous Utility methods.
*/
Final class Utils {
Private Function __construct () {
}
/**
* Redirect to the given page.
* @param type $page target page
* @param array $params page parameters
B2core is a lightweight PHP MVC framework, with 300 lines of code encapsulating useful features such as common CRUD.The latest version of the code, please see http://b2core.b24.cn, welcome criticism and suggestions. This page provides a detailed
When importing a 8M database with phpMyAdmin, you cannot import successfully, and the following error occurs:When importing a 8M database with phpMyAdmin, you cannot import successfully, and the following error occurs:workaround : When you need to
function Get_http_response_code ($theURL) {
$headers = Get_headers ($theURL);
return substr ($headers [0], 9, 3);
}
?>
Copy CodeThe function of get_headers is to access a remote address and return the
just put the PHP into the Ucenter directory and execute it. Source:Http://www.tongqiong.com/read.php?tid-27-ds-1.html
Author: www.tongqiong.com
Header ("content-type:text/html; Charset=utf-8 ");
Include_once
The first version of the PHP framework, people who want to use this framework can provide valuable advice. and the related bugs. I will continue to improve in the future version.The framework's file has a large amount of annotation information,
When you do a statistical chart, you need to use "," to separate the data, but I will inevitably end up with one more "," when I use loops to accumulate strings. For example, I take out the 1,2,3,4,5, but I need to delete the last comma of this
Insecure Include
The following Include statement would
Include and execute everything POSTed
to the server
Include "Php://input";
?>
Copy CodeExample 2:use data:to Include arbitrary code
/*
* Function: PHP image watermark (watermark supports picture or text)
Parameters
* $groundImage background image, that is, need to add a watermark image, temporarily only support gif,jpg,png format;
* $waterPos watermark
Recently, I always encountered the problem of digital conversion of Chinese, wrote a share. Let's have a lot of advice.
/*
* Func Digital Conversion Chinese class
* Author Shuang
* Date 2012-08-17
* email:shuangbrother@
function Server_transfer ($dest)
{
Global ...; List the page variables or custom global variables you want to include in the new page here
Include $dest; Run a new script
Exit Exit this script
}
?>
//-------------------------------------
File Description: File Upload processing class
File Author: Jesse Lee
//-------------------------------------
Class Upload {
var $dir; Attachment Storage Physical Directory
var
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