Remove the Utf-8 BOMs
by magicbug at gmail dot com
if (Isset ($_get[' dir '))) {//file directory to be removed, no parameter is the current directory of the file.
$basedir =$_get[' dir '];
}else{
$basedir = '. ';
}
Header (' Content-type:text/html;charset=utf-8 ');
/**
* A class for grabbing pictures
*/
Class Download_image {
Public $_save_path = NULL; Picture Save Road Strength
Public $_limit_size = NULL; Picture Limit Size
PHP generates a random number through the rand () function, which produces a specified range of numbersThis code randomly selects a picture by the resulting random number
Srand (Microtime () * 1000000);
$num =
Class Page {
Private $total; Total number of records in the data table
Private $listRows; Number of rows displayed per page
Private $limit;
Private $uri;
Private $pageNum; Pages
Private $config =array (' Headers ' and '
$error = ""; Error holder
if (Isset ($_post[' createpdf ')) {
$post = $_post;
$file _folder = "files/"; folder to load files
if (extension_loaded (' Zip ')) {//Checking zip extension is available
if (Isset ($post [' Files '])
Header ("CONTENT-TYPE:TEXT/HTML;CHARSET=GBK");
Ini_set ("Date.timezone", "Asia/chong");
Determine if the file is empty
if (empty ($_files)) {
echo "Upload file too large";
Exit
}
Determine if the file upload has
/**
* Create a thumbnail image from $inputFileName no taller or wider than
* $maxSize. Returns the new image resource or false on error.
* Author:mthorn.net
*/
function thumbnail ($inputFileName, $maxSize = 100)
{
$
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