However, after SQL Server 2005, found that its Chinese encoding only supports GB and UCS-2 (Unicode 16), so directly in the database query display is correct, but the use of PHP UTF9 encoding display is full of garbled.
Find a lot of information,
Of course, there are other methods that can be searched online. I recommend a way to browse both the HTTP page and the WAP page, which is to use the Firefox + wmlbrowser component. Install the Wmlbrowser component of Firefox can support the direct
Make a home page call image, sometimes need to get fixed-size image, because the image position of the home page is usually specified by the designer, if it is to do the latest release image call, because do not know what proportion of images
A The first is the PHP page encoding1. The encoding of the PHP file itself should match the encoding of the Web pageA. If you want to use gb2312 encoding, then PHP will output headers: header ("content-type:text/html; charset=gb2312 "), static page
Copy CodeThe code is as follows:
Very good PHP database class, three or four code to take care of a table operation, no matter how complex the field.
This kind of many times used in large-scale website program development, the effect is
Configure the php.ini file (for example, 500M files of the following size)
Look for the following options and modify
File_uploads = on; open File upload option
upload_max_filesize = 500M; upload file limit
If you want to upload larger files, only
Perror 28
Error Code 28:no space left on device
SQL statement execution error: SELECT title,gid from Blog_blog WHERE Date Error writing file ' C:\WINDOWS\TEMP\MY9B6F.tmp ' (errcode:28)
Workaround:
1. Releasing C:\WINDOWS\TEMP\ space
2. Because
20.PHP5 Interface TechnologyPHP, like most object-oriented programming languages, does not support multiple inheritance. In other words, each class can inherit only one parent
Class. To solve this problem, PHP introduced the interface, the idea of
abstract methods and abstract classes
In the OOP language, a class can have one or more subclasses, and each class has at least one public method as
The external code accesses its interface. and abstract method is to facilitate the introduction of
1. Object-oriented Concepts
Object-oriented programming (object oriented Programming,oop, OOP) is a computer programming architecture, and one of the basic principles of OOP is that a computer program is composed of a single unit or object that can
Below I green Apple to take everyone into the path of getting into PHP
Description
For the time being, I am using Apache Web server and my SQL as the Web servers and databases, under the environment of php-4.3.3. Of course, simple to build and
Application of 14.final Keywords
This keyword can only be used to define classes and define methods, and it is not possible to use the final keyword to define member properties because
For final is the meaning of constants, we define constants in
If the number of record bars on the left is less than the value of $space (page segment), the page number $start increment from 1 to the right. If the number of records on the left is greater than the value of $left (the left and right pages),
Because Pharmar uses McAfee's anti-virus software, requires all programs to be installed in program files, so these files are placed under the D:\Program files for easy management. McAfee is good at writing protection rules.
Installation and
Copy CodeThe code is as follows:
/*
$Id: phpzip.php
*/
Class Phpzip {
var $datasec = array ();
var $ctrl _dir = Array ();
var $eof _ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00";
var $old _offset = 0;
function Zip ($dir, $zipfilename) {
if
Configuration of the 1,smarty cache:
$smarty->cache-dir= "directory name"; Create a cache directory name
$smarty->caching=true; Cache is turned on, false when caching is not valid
$smarty->cache_lifetime=60; Cache time in seconds
Use and purge of
Copy CodeThe code is as follows:
Class Page
{
private $pageSize;//How many rows per page
private $absolutePage;//Current page
private $pageCount;//Total page number
private $totalNum;//Total number of rows
private $prePage;//Previous Page
Private
Definition and usage
The __construct () function creates a new SimpleXMLElement object.
If successful, the function returns an object. If it fails, it returns false.
Grammar
__construct (Data,options,is_url,ns,is_prefix)
Parameters
Example code 1: Get content with file_get_contents in get
Copy CodeThe code is as follows:
$url = ' http://www.baidu.com/';
$html =file_get_contents ($url);
Print_r ($http _response_header);
EC ($html);
Printhr ();
Printarr ($http _response_header)
By referring to the ideas of others, you will find that you have the ideas and methods to solve many problems on a temporary basis.
Copy CodeThe code is as follows:
/*
Function: Get the content of the page, store it and read it; Lost63
*/
Class
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