Through understanding AppServ, it is more suitable for beginners to quickly build a web server environment and develop php! Start with AppServ!
AppServ is a PHP Web site shelving tool package. The author repacks free site shelving resources on the
Solve the following problems:
Json_encode Chinese character strings cannot be read
Chinese garbled characters in json_encode multi-level Arrays
An error occurred while changing the line in the json_encode array.
Question about Chinese
Comsenz launched the Manyou Open Platform (Official Experience address: http://uchome.developer.manyou.com) with third-party developers to provide personalized Internet applications for all users on the UCenter Home site. Webmasters enable and
Today, with extensive application of QR codes, it is the most basic requirement to automatically generate corresponding QR codes on websites. This article introduces three ways to automatically generate a QR code using PHP.
Method 1 of the get
If you use php +-*/to calculate the floating point number, you may encounter some calculation result errors, such as echo intval (0.58*100); 57 is printed instead of 58, this is actually a bug that the underlying binary of the computer cannot
\ N soft carriage return:In Windows, it indicates a line break and returns to the starting position of the next line. It is equivalent to \ r in Mac OS.In Linux and unix, it only indicates line breaks, but does not return to the starting position of
Of course, the phpExcel class library is used to generate an excel file, but it is too troublesome. it is not worthwhile for simple generation.What is simple? Just import the database data to excel. This is simple.See the following code (the Code
Focus on the one_mail function. Use the Mail_mimeDecode class to extract the mail header and body from the mail.Copy codeThe Code is as follows:Header ("content-type: text/html; charset = UTF-8 ");/** Record kid words and insert into database* User
Php does not provide a function that returns the number of milliseconds, but provides a microtime () function that returns an array containing two elements, one being the number of seconds, one is the number of milliseconds represented by decimals.
When we write data to mysql, for example:
Copy codeThe Code is as follows:Mysql_query ("update table set 'title' = 'kuhanzhu's blog '");Then an error occurs. Like asp, databases are allergic to single quotes. Addslashes has the longest face at this
When writing the Form Verification class of the Framework tonight, you need to determine whether the length of a string is within the specified range. Naturally, you think of The strlen function in PHP.
The Code is as follows:
This article describes examples of SQL Injection Vulnerabilities in php.When developing a website, for security reasons, you need to filter the characters passed from the page. Generally, you can use the following interfaces to call the database
This article describes how to use openssl to implement rsa asymmetric encryption algorithms.The Code is as follows: _ keyPath = $ path ;} /*** create the key pair, save the key to $ this-> _ keyPath */public function createKey () {$ r =
The server generally has two types of thumbnails:1. generated during File UploadAdvantage: the required thumbnails have been generated during the upload, and no judgment is required during reading, reducing the cpu operation.Disadvantage: When the
1. Install Sublime Text 3
Package Control Installation
Installation Guide
2. Plug-in Installation
I thought it was a required plug-in
Plug-ins supporting UTF-8 Encoding
Used to match parentheses, quotation marks, and html tags. It
Two-dimensional arrays are often used in PHP development, but their sorting is not as convenient as a one-dimensional array with built-in functions. We need to write a function to sort two-dimensional arrays, here, UncleToo will share with you a PHP
Php analyzes and draws the waveform of audio files, which is rarely seen on the Internet. It is really easy to use Php fseek, fopen, fopen, pack/unpack functions, and powerful gd graphics library according to wav file specifications. Many may be
The Apache server has a built-in user authentication mechanism. if you set it appropriately, you can control some parts of the website for user verification. As long as you step by step, you can easily implement user verification.
The Apache server
I used to be a programmer on an Apple computer. when Windows 95 was launched, I started to change. However, many original codes cannot be run on Windows 95. these codes are now put aside, I am very sorry. So I don't want to see such a tragedy in
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