Repeat the questions replied to this POST. a result of imitating Baidu POST bar is to click a POST title on the POST list page to go to the POST homepage. after the value is queried in the database, click it to display the Post author and title
First, set up a Web server
First of all, your Web server will be able to handle PHP scripts by installing PHP. Second, to enable the Web server to identify and process PHP, WML, wbmp and other files, the Web server's MIME table needs to add the
PHP experience Collection, read PHP experience Collection, recently completed projects in hand, relatively idle. Come here and share some accumulated skills with you! 1. PHP redirection Method 1: header ("> Recently, projects in the hands are
As we all know, most of the Web site news or product information are static pages. The advantages of this is mainly to: 1, speed up access, avoid excessive operation of the database; 2, SEO optimization, easy search engine included.
This example
$im = Imagecreatetruecolor (100,100);//Create a new true color image
$white = Imagecolorallocate ($im, 255,235,255);//Assign a color to an image, which is different from my design knowledge. I never thought that when painting, you should assign a
The most common verification is email address verification. Websites are common. Various web scripts also use regular expressions "(Regular Expression) Verify the email address we entered to determine whether the email address is valid. Some can
Solve the problem that garbled characters may occur when Ajax transmits Chinese characters.
//
If the transfer parameters are directly assigned, garbled characters are generated!
Http_request.open (
"
Post
"
, URL,
True
[Solution 1]
I used to post a post using XMLHTTP post form. The value of Post e in the Code there is no problem, but it is found that there will be garbled characters when post contains Chinese forms, of course the reason is the conversion problem
Ajax garbled solution Summary
First, JavaScript follows the Java character processing method, and Unicode is used internally to process all characters,
Second, UTF-8 is stored in three bytes for each Chinese character (UNICODE character.
Third,
1. Install PHPAPCDownload and unzip the installation package:
Copy codeThe Code is as follows: wget-c http://pecl.php.net/get/APC-3.1.13.tgz
Tar-zvxf APC-3.1.13.tgz
CdAPC-3.1.13
Compile and install:Copy codeThe Code is as follows: wget-c http://pecl.
Some small things may be useful sometimes!
1. Obtain the Client IP address.
Function getip (){If (! Empty ($ _ SERVER ["HTTP_X_FORWARDED_FOR"]) {// proxy usage$ Tip = split (",", $ _ SERVER ["HTTP_X_FORWARDED_FOR"]);$ Cip = $ tip [0];}Else$ Cip = $
PHP generates a compressed file instance ,. PHP generates a compressed file instance. the general requirement is that each order has multiple file attachments, when downloading, you want to automatically package the file in the current order into a
Ask how to obtain data from the database on a simple UTF-8 page. the Chinese characters are question marks, and the methods used cannot be HTMLcode & lt ;! DOCTYPEhtmlPUBLIC & quot;-W3CDTDXHTML1.0TransitionalEN & quot; www.
Recently, projects in the hands are relatively idle. Come here and share some accumulated skills with you! 1. PHP redirection Method 1: header (Location: index. php); Method 2: echoscriptwindow. location $ PHP_SELF; script; Method 3:
Correct use of PHPXMLReader to parse XML documents. The sample code using PHPXMLReader is as follows :? PHPheader (Content-type: texthtml; Charsetutf-8); $ urlwww. google. comigapi? Weathershenzhen; we are using XML content loading.
The code
Public platform development-public transit transfer 1) API application
2) API call
3) [B] effect Display [/B]
4) precise query
--------------------------------------------------------------------------
1) API application
Love to provide
Php verification code generation detailed tutorial. This article provides a php Tutorial to generate a verification code. the previous section describes how to generate and call the verification core code .? Phpheader (content-type: image this
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.